View Full Version : Programming OpenGL/C++ with Eclipse CDT
Mar 7, 2009, 04:08 PM
It seems that I finally managed to download all those OpenGL frameworks, darwin ports packages, more packages for SDL, XCode and Eclipse can compile the most part of my project.
Though... I'm stuck now at another error: "symbol(s) not found". I have a main.cpp and a int main() method inside, so that's not the error.
Any ideas to solve this?
Thanks in advance.
Mar 7, 2009, 06:05 PM
Which symbol(s)? You most likely aren't linking against a certain framework/library, or don't even have it on your computer.
Mar 7, 2009, 07:28 PM
Nice question... The only information Eclipse returns is:
symbol(s) not found, on element: <Project Name>, location: line 0
Am I missing some 'framework'? Currently mi list in /Library/Frameworks is:
Do I need more or maybe I have to "link" them to the Eclipse? (In the last case I am totally newbie; I have never added/imported libraries nor plugins to Eclipse)
Mar 8, 2009, 04:38 AM
Your error message isn't very informative...however, you're definitely going to need to tell Eclipse where to find things. I've done some OpenGL-based programming on Eclipse on a Mac (though probably with a different graphics library than you), and the primary things you'll need to do are go to Properties->C/C++ Build->Settings, then select Miscellaneous under MacOS X C++ Linker and add to the Linker flags field the various Mac OS X frameworks you're using (in my case, I was using "-framework Carbon -framework OpenGL -framework SDL"). Other libraries, most likely including whatever graphics libraries you're using, go into Libraries (right above Miscellaneous).
I can't really be of any more specific help without better information from you on what the problem is.
Mar 8, 2009, 05:17 AM
Tried it, but no results...... I guess that Ganymede doesn't like me. Hah.
Thanks for your help anyway .')