Mail Archives: djgpp/1998/09/30/23:01:30
AMITEC wrote:
>
> I am using a GNU c compiler for the first time. Does the compiler produce
> object code ?
If you use the `-c' option, yes; otherwise it normally makes an
executable.
gcc -o hello.exe hello.c
> How do I link object code to a library ?
Normally, you install the library in the `lib' subdir of DJGPP, and add
it to the link line with `-l', stripping the beginning `lib' and the
trailing `.a'. Example:
copy libfoo.a \djgpp\lib
gcc -c -o bar.o bar.c # Compile to an object file.
gcc -o bar.exe bar.o -lfoo
> Is there a make
> utility ?
Yes; appropriately enough it's called `make'. You can get it as
`makNNNb.zip' from where you got DJGPP, where NNN is the version number;
I believe the current version is 3.77.
A lot of this is explained in README.1ST and in the FAQ; please read
them!
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -