Hello,
being a newbie with SFML I tried to integrate SFML 1.6 in Codeblocks 10.05 but get linker error, when compiling the template of Codeblocks for SFML.
Using precompiled SFML 1.6 SDK under Windows Vista (installed in D:\SFML-1.6) and copying MinGW gcc 4.4 packages over my standard MinGW installation (installed in D:\MinGW) I try to set Codeblocks global variable for SFML "sfml' to:
base: D:\SFML-1.6
include: D:\SFML-1.6\include
lib: D:\SFML-1.6\lib
then when I start a project using SFML template and state global variable
(#sfml)
I get an error:
The path you entered seems valid, but this wizard can't locate the following SFML's include file: Audio.hpp in it.
Can't I use the Codeblocks template project to start a SFML project?
Any help appreciated. Thanks.
Edit: Okay I could get this working if I set the global variable include path to:
include: D:\SFML-1.6\include
then the template generator works, but if I compile it could not find header files so I had to reset include path to:
include: D:\SFML-1.6\include
but then I get a linker error:
ld.exe||cannot find -lsfml-audio.dll|
||=== Build finished: 1 errors, 0 warnings ===|
I don't know very much about link libraries under GNU C, but I remembered that the link library name is something like
liblibrary.a or so, so why does it want to link against a DLL file. In my understanding DLL is for runtime.
Further the file sfml-audio.dll exists in the lib directory together with libsfml-audio.a so I don't understand why the linker doesn't find it?