Closed GoogleCodeExporter closed 9 years ago
I found this:
http://cymonsgames.com/forum/index.php?topic=7.msg703#msg703
"Turns out that on OSX you have to rename your main() to SDLmain() and link
with libSDLmain. Furthermore, since SDLmain() has to be defined as extern "C",
I had to make SDLmain() be a wrapper that calls the C++ main(), which I renamed
to cpp_main()."
I'll do exactly that.
Original comment by kometb...@gmail.com
on 15 Dec 2010 at 10:38
Actually, scratch that. Could you check if adding '-framework Cocoa' in CFLAGS
fixes that? In Makefile (klystrack/Makefile), modify the line that says "CFLAGS
+= $(CFGFLAGS)" as "CFLAGS += $(CFGFLAGS) -framework Cocoa". I think SDL should
take care the above main() renaming (which it does on other platforms too).
Original comment by kometb...@gmail.com
on 15 Dec 2010 at 11:15
'sdl-config --libs', which is called in the Makefile already does that.
karchon:~riker$ sdl-config --libs
-L/Volumes/dStore/macports/lib -lSDLmain -lSDL -Wl,-framework,Cocoa
I am now trying to get it compiled with the SDL version from libsdl.org.
Original comment by ron.rick...@googlemail.com
on 15 Dec 2010 at 11:54
Original comment by kometb...@gmail.com
on 18 Dec 2010 at 1:26
Original issue reported on code.google.com by
ron.rick...@googlemail.com
on 15 Dec 2010 at 9:45