1
General / Re: Having difficulties compiling a release build with static DLLs
« on: March 18, 2015, 02:55:19 am »
Hi again, folks!
I'm coming back to this because I've encountered a related issue, and didn't want to clog the boards with a new thread.
I was able to get a release build using static linking, by adding all of the additional libraries. But I'm running into an issue when I try to create a debug build. Specifically:
Unhandled exception at 0x77E122D2 (ntdll.dll) in Point_and_Click.exe: 0xC0000005: Access violation writing location 0x00000004.
I did some searching on google, and it's mentioned that I may be mixing release and debug libraries. My additional dependencies look like this:
sfml-graphics-s-d.lib
sfml-audio-s-d.lib
sfml-network-s-d.lib
sfml-window-s-d.lib
sfml-system-s-d.lib
winmm.lib
ws2_32.lib
sndfile.lib
openal32.lib
opengl32.lib
gdi32.lib
glew.lib
freetype.lib
jpeg.lib
I tried changing the latter ones to include a -d, but I then got this error:
cannot open file 'winmm-d.lib', so I suspect that's not the case.
I'm fairly certain it's an issue with my debug vs release configuration, because the code itself compiles and runs happily in release mode.
I'm coming back to this because I've encountered a related issue, and didn't want to clog the boards with a new thread.
I was able to get a release build using static linking, by adding all of the additional libraries. But I'm running into an issue when I try to create a debug build. Specifically:
Unhandled exception at 0x77E122D2 (ntdll.dll) in Point_and_Click.exe: 0xC0000005: Access violation writing location 0x00000004.
I did some searching on google, and it's mentioned that I may be mixing release and debug libraries. My additional dependencies look like this:
sfml-graphics-s-d.lib
sfml-audio-s-d.lib
sfml-network-s-d.lib
sfml-window-s-d.lib
sfml-system-s-d.lib
winmm.lib
ws2_32.lib
sndfile.lib
openal32.lib
opengl32.lib
gdi32.lib
glew.lib
freetype.lib
jpeg.lib
I tried changing the latter ones to include a -d, but I then got this error:
cannot open file 'winmm-d.lib', so I suspect that's not the case.
I'm fairly certain it's an issue with my debug vs release configuration, because the code itself compiles and runs happily in release mode.