Re: Interpreting "undefined symbols" {almost fixed}
Re: Interpreting "undefined symbols" {almost fixed}
- Subject: Re: Interpreting "undefined symbols" {almost fixed}
- From: Adam <email@hidden>
- Date: Mon, 17 Dec 2007 21:18:59 -0800
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
On Dec 17, 2007, at 7:25 PM, Adam wrote:
You have to include SDL_main.h in the file containing your main (that's the one with the macro to rename your main to SDL_main). It's needed because the SDLMain.m has to setup the window and event loop before your code can start.
I included it, and still, no dice. Link to code with SDL files included:
Hit the second link; you already have the first one if you dl'ed it.
I downloaded it and sdl. It doesn't build because you seem to be including objective c headers in a .cpp. I'm not entirely clear how it's building for you.
You've included SDLMain.h in your sdl_t002.h file. That is breaking the build.
Once I removed that include, it built perfectly for me.
Noted and almost fixed. See below for details. Adam,
I downloaded your project. I am on Leopard and Xcode 3; I needed to upgrade your project to a native target and set the .cpp files to compile as obj-c++, but once I did that the project built, linked and ran just fine.
So, I am not sure what to suggest; it just seems to work for me.
Perhaps you should try upgrading the project to use a native target instead of the JAM based target that you are currently using.
Best regards,
B.J Buchalter
I upgraded the project and it works now, with the exception of two error warnings:
/usr/bin/ld: warning -F: directory name (/Users/atg/Desktop/Projects/Programming) does not exist /usr/bin/ld: warning -F: directory name (Project/Builds/Tetris_020) does not exist
I don't understand why it needed to be upgraded, but at least it works now. Thanks to everybody for your help and please help me "hammer the nail on the coffin"...
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