SFML community forums
Help => General => Topic started by: kiuzhack on October 22, 2011, 04:16:33 pm
-
Hallo to all,
I use OSX Lion where I have installed SFML2 with CMAKE and "sudo make install" command...
Next time I create new c++ project into Ecplise and and SFML-folder are correctly into "Serch Path" and I can inlcude all file of library, but if I build this code (https://gist.github.com/f3bbaa8cfdcdc2c4f3aa) ecplise return this error (https://gist.github.com/0981100ff21026755edc).
Why?... How can I resolve it?
thanks very mutch
-
It looks like you aren't linking to the libraries properly
-
But live "building" read correctly all classes's information...
-
I've no idea how eclipse live building works however, according to your error log, on line 12 (g++ -o "sfml2_1" ./src/sfml2_1.o), we can see that -lsfml-[system&window] are missing.
Check your project settings. I've no clue how it works but you should be able to add SFML libraries to your project's linker options.