Re: Interpreting "undefined symbols"
Re: Interpreting "undefined symbols"
- Subject: Re: Interpreting "undefined symbols"
- From: Adam <email@hidden>
- Date: Sat, 15 Dec 2007 23:21:23 -0800
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
On Dec 15, 2007, at 1:26 PM, Adam wrote:
When modifying an OpenGL program that I found on nehe.gamedev.net, for some reason I get the following error code:
/usr/bin/ld: Undefined symbols: _main collect2: ld returned 1 exit status
...and yet I have the main function defined! Sorry if this is a stupid question or something, but my head hurts pretty bad right now from trying to figure this out... I bet it's something simple, but I can't figure it out.
I bet it's because your main function is in a C++ source and isn't declared extern "C".
Even when I declared main() as extern "C", it had the errors.
I didn't have this problem until a short while ago, when I made some minor changes to the program, and now I can't get any of my Xcode projects to work - they all have this error message now. I didn't change anything in the Xcode preferences, either. Any ideas?
All help is appreciated and thanks in advance.
~ < [ / Adam-o \ ] > ~
Mac OS 10.4.11 Powerbook G4
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden