| Summary: | SDL 2.0 won't link on Visual Studio 2012 RC for x64 | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Marek Pokorny <marek3141> |
| Component: | haptic | Assignee: | Edgar Simo <bobbens> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 7 | ||
|
Description
Marek Pokorny
2012-07-09 11:16:52 UTC
Sam, all function calls are to SDL_memcpy not memcpy. So perhaps it is being detected as HAVE_MEMCPY when it shouldn't? Don't know why the error doesn't reference other places, maybe it's just the first time it finds it? I think I found the problem. In SDL_stdlib.c line 37:
/* The optimizer on Visual Studio 2010 generates memcpy() calls */
#if _MSC_VER == 1600 && defined(_WIN64) && !defined(_DEBUG)
#include <intrin.h>
#pragma function(memcpy)
void * memcpy ( void * destination, const void * source, size_t num )
{
...
When I changed it to _MSC_VER == 1700 (the version used for vs2012rc) it compiled and linked perfectly. Perhaps this should be changed to _MSC_VER >= 1600.
Fixed, thanks! http://hg.libsdl.org/SDL/rev/3ef4d0e923cb |