Mail Archives: djgpp/1999/02/09/09:15:13
>I'm trying to write a 3D engine using DJGPP and GRX23, the problem is that
>I can't get my C code to compile, as I don't know anything about linking
>or Make files. Can anyone help.
>
>-=Ian=-
Well, I don't have MAKE, but you can easily run GCC to compile your source with:
GCC source.c -o object.o
The -o swith makes gcc put the output into this file, it'll see the .o and know
it should be an object file.
When you want to link the files just use:
GCC object1.o object2.o object3.o -o program.exe
Or simply
GCC *.o -o program.exe
Now the -o switch indicates an executable.
When I called the linker manually I always ended up in a fight with the linker,
because I thought the library existed, and the linker thought it didn't.
The GCC automatically links all library's you'll need.
I personally use Borland's old MAKE utility with the GCC compiler. Works
perfectly...
Greetz,
Airhead Zoom of Dancing Pumpkin Productions
- Raw text -