delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/27/16:23:40

Sender: nate AT cartsys DOT com
Message-ID: <36FD4C11.E22B5AE3@cartsys.com>
Date: Sat, 27 Mar 1999 13:22:25 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.3 i586)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: linking errors
References: <36FC3521 DOT 81E5EEC9 AT iocc DOT com>
Reply-To: djgpp AT delorie DOT com

vern wrote:
> 
> Hi again.
> I have yet ANOTHER problem i dont know how to fix.  im working on a
> program that shows stars flying across the screen, then as the program
> starts, itll fade the stars in.
> i went to compile my latest changes, and got the following errors:
> 
> D:\Programming\starthingy> gxx -c -Wall -o2 -ffast-math
                                          ^^^

That "o" needs to be capital, otherwise you are writing the output to a
file named "2".  Not what you want.

> -fexpensive-optimi
> zations -fschedule-insns2 -funroll-loops stars.cc
> stars.cc: In function `int main()':
> stars.cc:35: warning: implicit declaration of function `int delay(...)'
> stars.cc:51: warning: implicit declaration of function `int
> setpallette(...)'
> stars.cc:54: warning: implicit declaration of function `int printf(...)'

You aren't including the appropriate headers.  At a guess I'd say you
need <stdio.h> and <dos.h>.  And `setpalette' appears to be spelled
wrong.

> D:\Programming\starthingy> gxx -o stars.exe stars.000 -lalleg

And where did this `stars.000' file come from?  The previous command
will create `stars.o' (after you fix the -O), which is the file you want
to use.

-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019