Keknehv Report post Posted October 27, 2004 Hi all, this is keknehv again. So today I was attempting to compile the old source code (v.100)-stable, and I got it to compile everything correctly into .o's... And then, there was the problem. I was compiling this on an old Windows 98 (333MHz... so slow), but there is a limit to the length of DOS commands, so the huge list of o files got cut off, and it basically died. So this is my question: can I have gcc combine .o's in separate parts? Or do I need to just get Dev-Cpp on my Windows XP? Share this post Link to post Share on other sites
Entropy Report post Posted October 28, 2004 That sucks, I had this problem once too, when I was using Win98... I don't know how to solve it (rather than renaming all the files to short names) Share this post Link to post Share on other sites
Keknehv Report post Posted October 28, 2004 (edited) Ok... so I finally actually got it on my XP and it compiled it all into o's... and then....: ../elc/weather.o(.text+0x2f1):weather.c: undefined reference to `glPushMatrix@0' ../elc/weather.o(.text+0x2f6):weather.c: undefined reference to `glLoadIdentity@0' ../elc/weather.o(.text+0x302):weather.c: undefined reference to `glEnableClientState@4' ../elc/weather.o(.text+0x329):weather.c: undefined reference to `glVertexPointer@16' ../elc/weather.o(.text+0x338):weather.c: undefined reference to `glEnable@4' ../elc/weather.o(.text+0x34f):weather.c: undefined reference to `glBlendFunc@8' ../elc/weather.o(.text+0x37a):weather.c: undefined reference to `glColor4f@16' ../elc/weather.o(.text+0x39a):weather.c: undefined reference to `glDrawArrays@12' ../elc/weather.o(.text+0x3a9):weather.c: undefined reference to `glDisable@4' ../elc/weather.o(.text+0x3b8):weather.c: undefined reference to `glDisableClientState@4' ../elc/weather.o(.text+0x3c7):weather.c: undefined reference to `glMatrixMode@4' ../elc/weather.o(.text+0x3cf):weather.c: undefined reference to `glPopMatrix@0' ../elc/weather.o(.text+0x3db):weather.c: undefined reference to `glMatrixMode@4' ../elc/weather.o(.text+0x3e3):weather.c: undefined reference to `glPopMatrix@0' ../elc/weather.o(.text+0x3ef):weather.c: undefined reference to `glMatrixMode@4' ../elc/weather.o(.text+0x3fe):weather.c: undefined reference to `glEnable@4' ../elc/weather.o(.text+0x40d):weather.c: undefined reference to `glEnable@4' (That's just a segment, I got that on almost everything) It gives me this crap when it gets to the .o-->.exe thingy. WTH? Edited October 28, 2004 by Keknehv Share this post Link to post Share on other sites
Cicero Report post Posted October 28, 2004 Um, are you linking with libGL? Share this post Link to post Share on other sites
Keknehv Report post Posted October 28, 2004 (edited) Errr... was I supposed to? How do I do that? (I'm using Dev-Cpp) Edited October 28, 2004 by Keknehv Share this post Link to post Share on other sites
Entropy Report post Posted October 28, 2004 In the linker section, add -lopengl32 Share this post Link to post Share on other sites
Keknehv Report post Posted October 29, 2004 dang... now it's giving sdl errors... Help? Share this post Link to post Share on other sites
Cicero Report post Posted October 29, 2004 Maybe . . . you need to link with SDL? *gasp* Share this post Link to post Share on other sites
Keknehv Report post Posted October 29, 2004 (edited) Hmmm... maybe I should have said "How do I link with SDL" *gasp* How do I link with SDL? Better yet, what is everything I need to link to? Edited October 29, 2004 by Keknehv Share this post Link to post Share on other sites
kzar Report post Posted October 29, 2004 -lSDL -lopengl32 -lxml2 -lSDL_net -lALut -lOpenAL32 -lvorbisfile -liberty Share this post Link to post Share on other sites
Learner Report post Posted October 29, 2004 With some changes I see in main.c, you may not need -liberty, and that is needed only with some compilers, others needed different libraries or commenting out getopt(). Share this post Link to post Share on other sites
kzar Report post Posted October 29, 2004 well those where the options in my project file but it wasnt the old version i suppose. Share this post Link to post Share on other sites