destructive cactus
2005.07.25, 06:03 PM
I've been working on a mac port for the roguelike IVAN (http://ivan.sourceforge.net) for some time now. Here's the main error that is stopping me, all the way at the end during the linking process:
g++ -g -O2 -o ivan actset.o areaset.o charset.o charsset.o command.o coreset.o dataset.o dungeon.o game.o godset.o iconf.o id.o igraph.o itemset.o levelset.o main.o materset.o message.o object.o roomset.o script.o slotset.o trapset.o wmapset.o wskill.o ../..//FeLib/Source/libFeLib.a -L/usr/local/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL
ld: Undefined symbols:
_SDL_main
I was able to solve this in the previous builds by adding SDL.h and SDL_main.h to the file Main.cpp that called the main function. However, the previous builds weren't endian-agnostic so even after being built, the game couldn't get too far. The devs were kind enough to send me a new version for testing, however, even with my fix that worked last time, it doesn't seem to work. When googling for this error, I see a lot of other people with similar problems....has this ever been solved? If so, how?
Thanks!
g++ -g -O2 -o ivan actset.o areaset.o charset.o charsset.o command.o coreset.o dataset.o dungeon.o game.o godset.o iconf.o id.o igraph.o itemset.o levelset.o main.o materset.o message.o object.o roomset.o script.o slotset.o trapset.o wmapset.o wskill.o ../..//FeLib/Source/libFeLib.a -L/usr/local/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL
ld: Undefined symbols:
_SDL_main
I was able to solve this in the previous builds by adding SDL.h and SDL_main.h to the file Main.cpp that called the main function. However, the previous builds weren't endian-agnostic so even after being built, the game couldn't get too far. The devs were kind enough to send me a new version for testing, however, even with my fix that worked last time, it doesn't seem to work. When googling for this error, I see a lot of other people with similar problems....has this ever been solved? If so, how?
Thanks!