Mail Archives: djgpp/1995/01/12/02:57:33
On Wed, 11 Jan 1995, Jeearr the Demon of Chaos wrote:
> When trying to compile a small program (using a Makefile cause it should grow
> considerably soon) i got the following error
>
> gcc -o intro.o -c -g -Wall -Wshadow -Wconversion -Wstrict-prototypes -Wredundant-decls intro.c
>
> ld intro.o -o truth -Ld:/djgpp/lib -lc -lgcc
>
[horrible error messages deleted]
try just calling "gcc intro.o ......". This calls the compiler driver,
gcc.exe, which in turns calls ld with some hidden arguments, including
crt0.o, which contains startup routines all programs needs.
Try gcc -v sometime to see the actual "ld" command line used.
Gordon.
>
- Raw text -