Mail Archives: djgpp/2001/03/15/04:04:45
On Thu, 15 Mar 2001, CJ wrote:
> when I compile, it says no errors, when i go to link it says:
>
> c:/djgpp/bin/ld.exe -o hello.exe
> c:/djgpp/lib/crt0.o -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djgpp/2.81 -Lc:/dj
> gpp/bin -Lc:/djgpp/lib hello.o -lstdcx -Tdjgpp.djl -lgcc -lc -lgcc
> c:/djgpp/bin/stubify.exe -v hello.exe
> The error was: Invalid argument (EINVAL)
> no errors
Please try the following command from the DOS box's command prompt,
and tell what did it print:
gcc -v -o hello hello.o -lstdcx
(Note that I used "-o hello", not "-o hello.exe": this is done on
purpose.)
Also, it looks like you have an old version of the compiler. What
does each of the following commands print?
gcc --version
ld --version
dir c:\djgpp\bin\stubify.exe
- Raw text -