Jump to content
Eternal Lands Official Forums
Sign in to follow this  
Keknehv

Compile Error

Recommended Posts

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

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

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 by Keknehv

Share this post


Link to post
Share on other sites

Hmmm... maybe I should have said "How do I link with SDL" *gasp*

 

:D

 

How do I link with SDL?

 

Better yet, what is everything I need to link to?

Edited by Keknehv

Share this post


Link to post
Share on other sites

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×