Code::Blocks Forums

User forums => Help => Topic started by: psychohyena on November 03, 2010, 11:14:40 am

Title: SFML Project in Code::Blocks
Post by: psychohyena on November 03, 2010, 11:14:40 am
Hey all,

I'm wondering if someone knows how to resolve this issue. I have chosen to create a fresh SFML Project in Code::Blocks, I set the location of the files to the correct location, however whenever I try to compile the default application it keeps telling me that it cannot find -lsfml-audio.dll

Even placing -lsfml-audio and other variations of this (-lsfml-audio.dll etc) does not fix the problem.

I have the lib and include folders included in the Search Directories area and everything seems to like a-ok.

The folder structure of the SFML folder (the default structure from the official dl) is:

SFML\
SFML\lib\
SFML\include\
SFML\include\SFML\

To even get Code::Blocks recognising the location of the headers I needed to modify the include folder so that the headers were in the SFML\include\ and the SFML\include\SFML\ folders.

I am currently using Code::Blocks 10.05 and SFML 1.6 on Windows XP SP2.

Let me know if you need any more information to resolve this.

Cheers,
Title: Re: SFML Project in Code::Blocks
Post by: stahta01 on November 03, 2010, 09:17:02 pm
What compiler are you using?

http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Tim S.