Mail Archives: djgpp/1999/03/27/16:23:40
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 -