GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #499

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Jan-Jaap van der Heijden
Subject: setting up gpc
Date: 12 Apr 1997, 12:50:03

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

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


In reply to

Author Subject Date
Alan Bailey setting up gpc 11 Apr 1997, 15:40:03

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).