Issues compiling the SDL 2.0.0/2.0.1 Source under VS2013(EE)

I have thought about trying to compile a statically linked version of SDL 2.0.0/2.0.1 using one of the provided solutions (Visual Studio 2012 Express Edition under Visual Studio 2013 Express Edition). Unfortunately, it was unable to compile properly. After doing a bit of research, it might be a bug with Visual Studio 2013 (not sure if it applies only to the Express Editions or also affects the other editions)

Here are some of the errors:
Error 2 error LNK2019: unresolved external symbol __ftoui3 referenced in function _SDL_HashDollar D:\Source Code\SDL2-2.0.1\VisualC\SDL\SDL_gesture.obj SDL2
Error 3 error LNK2019: unresolved external symbol __dtoui3 referenced in function _SDL_PrintFloat D:\Source Code\SDL2-2.0.1\VisualC\SDL\SDL_string.obj SDL2
Error 9 error MSB3073: The command “copy “D:\Source Code\SDL2-2.0.1\VisualC\SDL\Win32\Debug\SDL2.dll” “D:\Source Code\SDL2-2.0.1\VisualC\tests\testplatform\Win32\Debug\SDL2.dll”
:VCEnd” exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 132 5 testplatform

For anyone else having issues with it, might need to use Visual Studio 2012 or earlier for now until there is a fix (at least the for the unresolved external symbol errors with __ftoui3 and __dtoui3) for Visual Studio 2013. Either that, use another compiler instead.

P.S.: I have been using the precompiled libraries with no problem under VS2013. Only have trouble trying to compile the SDL 2.0 code directly due to what might be bugs with VS2013.

You need to change code generation to use /arch:SSE to prevent SSE2
floating point functions from being implicitly called.

I just added projects for Visual Studio 2013 full edition, if that helps.On Mon, Nov 11, 2013 at 12:06 AM, Bandock wrote:

I have thought about trying to compile a statically linked version of
SDL 2.0.0/2.0.1 using one of the provided solutions (Visual Studio 2012
Express Edition under Visual Studio 2013 Express Edition). Unfortunately,
it was unable to compile properly. After doing a bit of research, it might
be a bug with Visual Studio 2013 (not sure if it applies only to the
Express Editions or also affects the other editions)

Here are some of the errors:
Error 2 error LNK2019: unresolved external symbol __ftoui3 referenced in
function _SDL_HashDollar D:\Source
Code\SDL2-2.0.1\VisualC\SDL\SDL_gesture.obj SDL2
Error 3 error LNK2019: unresolved external symbol __dtoui3 referenced in
function _SDL_PrintFloat D:\Source
Code\SDL2-2.0.1\VisualC\SDL\SDL_string.obj SDL2
Error 9 error MSB3073: The command “copy “D:\Source
Code\SDL2-2.0.1\VisualC\SDL\Win32\Debug\SDL2.dll” “D:\Source
Code\SDL2-2.0.1\VisualC\tests\testplatform\Win32\Debug\SDL2.dll”
:VCEnd” exited with code 1. C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 132 5
testplatform

For anyone else having issues with it, might need to use Visual Studio
2012 or earlier for now until there is a fix (at least the for the
unresolved external symbol errors with __ftoui3 and __dtoui3) for Visual
Studio 2013. Either that, use another compiler instead.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Thank you Sam. :smiley:

I was able to get it to compile with no fuss using what you stated about the SSE instruction set.

Great, you’re welcome. :)On Mon, Nov 11, 2013 at 2:50 PM, Bandock wrote:

Thank you Sam. [image: Very Happy]

I was able to get it to compile with no fuss using what you stated about
the SSE instruction set.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org