I've recently downloaded gpc (dos-djgpp) and tried running it. I used the sample hello world program included. I first tried doing this:
gpc.exe hello.pas
But it said it oculdn't open ld.exe or something "c:/djgpp/bin\ld.exe: cannot open -lgpc: No such file or directory (ENOENT)" Note the slashes ^
I'm assuming this is the executable you use, but I tried gpc1.exe:
gpc1.exe hello.pas
This worked fine, and the output was hello.s, an assembly file.
that's the current situation, I have a djgpp dir and a gpc dir on my computer, both with the included binaries and documentations.
So what's wrong, am I missing a parameter running gpc.exe, or do I need an assembler after gpc1.exe?
Mail privately or to the list...
On Fri, 11 Apr 1997, Alan Bailey wrote:
I've recently downloaded gpc (dos-djgpp) and tried running it. I used the sample hello world program included. I first tried doing this:
gpc.exe hello.pas
But it said it oculdn't open ld.exe or something "c:/djgpp/bin\ld.exe: cannot open -lgpc: No such file or directory (ENOENT)" Note the slashes ^
They are just fine, that's just djgpp's unix roots showing.
I'm assuming this is the executable you use, but I tried gpc1.exe:
gpc1.exe hello.pas
This worked fine, and the output was hello.s, an assembly file.
that's the current situation, I have a djgpp dir and a gpc dir on my computer, both with the included binaries and documentations.
This (a djgpp dir and a seperate gpc dir) seems to be the problem here. GPC should be installed in the djgpp directory. What happens now is that the djgpp linker (ld.exe) can't find GPC libraries.
So what's wrong, am I missing a parameter running gpc.exe, or do I need an assembler after gpc1.exe?
No, `gpc hello.pas' should work. If you want different output than `a.out' or `a.exe' then try: `gpc hello.pas -o hello.exe'
Mail privately or to the list...
Or both ;-)
/janjaap
--- The nice thing about standards is that there are so many to choose from - Andrew Tanenbaum