Isn't the undefined reference thingy a linking (and not compiling) error?
Ah, thank you. It was a pain, but I got something hacked together so that it understands all the mac_* files contain the necessary functions.
Now for the next hurdle (what else did you expect?): a_image.
The big deal it keeps throwing at me is about 'auto_ptr'. The compiler complains it is not part of std, but if I remove std, then it says it is not declared in the scope. After a little research, I learned auto_ptr is part of <memory>, but <memory> is already included in xerhes.h, which is included in a_image.
Somewhere it was suggested that 'auto_ptr' is outdated, or at least an inefficient way of handling pointers, but this is a subject i know very little about.
=================================================
Edit: Well, some research led to me a work-around to the auto_ptr problem. I'm really hoping this is close to working soon.
Anyway, the next issue up is about SDL. Currently, when trying to compile, it spits an error saying SDL_GetKeyboardState and SDL_GetScancodeFromKey are undefined. Now I know that SDL.h is included, but there may be a hang-up.
On my machine, SDL-1.2 is currently installed, including the dev files. However, it seems this all required SDL-1.3 which has some substantial rewrites. I do notice SDL-1.3 in the src folder, but in the makefile, these lines:
SDL_CFLAGS = $(shell sdl-config --cflags)
SDL_LDFLAGS = $(shell sdl-config --libs)
seem to call for the SDL installed on my machine and may conflict called functions and so forth.
Not sure if this is the actual case or not, so I'm looking for some advice.
=============================================
Edit Edit: Downloaded and got SDL-1.3 running, but now I have nothing left. I try to compile, get about 450 lines of warnings, 90% of which are deprecated conversion from string constant to char.
However, these last few lines seem to offer a clue that I'm not catching onto:
/tmp/ccbdBrn0.o: In function `main':
mac_system.cpp:(.text+0x8c0): multiple definition of `main'
./libcorona.a(pngtest.o):pngtest.c:(.text+0x1430): first defined here
./liblua.a(loslib.o): In function `os_tmpname':
loslib.c:(.text+0x16): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
collect2: ld returned 1 exit status