OS X: Please Help!

I can’t believe this, I can’t compile anything on my Linux box that runs
because of the stupid undefined reference to atexit that nobody seems to
be able to explain, and now I can’t compile anything on Mac OS X either!
I compiled my program on Mac OS X command line fine, but when I ran it
all the keyboard input was going to the terminal and not the program!
Furthermore the program won’t run from the GUI. I figured maybe I’d have
to use project builder but that gave me the same error another Mac
project I am working on gave me stupid mutliple definition errors even
though there are no multiple definitions and code in the header files to
prevent just such a thing!
That leaves me with the only functioning dev environment being Windows,
you can imagine the torture that is! Could somebody please tell me how
to compile an OS X app from the command line, or how to get SDL to read
the input correctly, or how to fix project builder, or how to solve the
stupid linux atexit error or something? This is horribly frustrating.

At 4:16 PM -0400 4/19/02, John Garrison wrote:

I can’t believe this, I can’t compile anything on my Linux box that runs
because of the stupid undefined reference to atexit that nobody seems to
be able to explain, and now I can’t compile anything on Mac OS X either!
I compiled my program on Mac OS X command line fine, but when I ran it
all the keyboard input was going to the terminal and not the program!

I think i’ve seen this, you might have to click the SDL window before
input will get there instead of terminal.

Furthermore the program won’t run from the GUI. I figured maybe I’d have
to use project builder but that gave me the same error another Mac
project I am working on gave me stupid mutliple definition errors even
though there are no multiple definitions and code in the header files to
prevent just such a thing!

I also just had this problem… (SDL app compiled on command line,
but not in PB) Apparently Project Builder forces f-no-common. So you
can’t have common symbols in headers, they all have to be “extern” in
the header. Just putting include guards around the header won’t help.
That might be your problem.

Also, the first thing I do for SDL apps on OSX is to change the
SDLMain.m file so the data is read from the Resources/ dir in the
bundle, and I have PB copy the data folders in there. Much more
Mac-like than having a folder full of data folders.

-Ben–
http://homepage.mac.com/bhines/