setting up gpc_(re)

Sat, 12 Apr 1997 12:50:03 +0100 (WET DST)


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




Jan-Jaap van der Heijden (janjaap@wit381304.student.utwente.nl)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es