PDA

View Full Version : Programming OpenGL/C++ with Eclipse CDT




Alexiel
Mar 7, 2009, 04:08 PM
Hello!

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.



kainjow
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.

Alexiel
Mar 7, 2009, 07:28 PM
Which symbol(s)?
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:

FxPlug.framework
HPDeviceModel.framework
HPPml.framework
HPServicesInterface.framework
HPSmartPrint.framework
MacFUSE.framework
PluginManager.framework
ProFX.framework
SDL.framework
OpenGL.framework

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)

Thanks.

Zortrium
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.

Alexiel
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 .')