SFML community forums

Help => General => Topic started by: kiuzhack on October 22, 2011, 04:16:33 pm

Title: OSX / Ecplipse Symbol not Found
Post 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
Title: OSX / Ecplipse Symbol not Found
Post by: sbroadfoot90 on October 23, 2011, 07:17:53 am
It looks like you aren't linking to the libraries properly
Title: OSX / Ecplipse Symbol not Found
Post by: kiuzhack on October 23, 2011, 11:52:16 am
But live "building" read correctly all classes's information...
Title: OSX / Ecplipse Symbol not Found
Post by: Hiura on October 24, 2011, 08:07:59 pm
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.