delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/17/03:54:49

From: peter AT agnes DOT dida DOT physik DOT uni-essen DOT de (Peter Gerwinski)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Trouble with GPC
Date: 16 Oct 1996 22:54:20 GMT
Organization: Universitaet Essen, Germany
Lines: 63
Message-ID: <543p2s$sso@sun3.uni-essen.de>
References: <01bbbab6$1e0cf340$LocalHost AT default>
Reply-To: peter DOT gerwinski AT uni-essen DOT de
NNTP-Posting-Host: agnes.dida.physik.uni-essen.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Niels Heirbaut (heirbaut AT pi DOT net) wrote:
> I don't know if this is the right group to post to (I haven't found an
> alternative), so please forgive me if this post is off topic.

Since this is a DJGPP-specific problem, I think this NewsGroup
is appropriate.  However, there is a GNU Pascal mailing list,
gpc AT hut DOT fi.  To subscribe, write to gpc-request AT hut DOT fi.

(This followup is also posted to the GPC mailing list.)

> I downloaded the binary files for GPC (version 2.7.2) and extracted them to
> my DJGPP directory. But when I tried to compile the program hello.pas (see
> below) with: C:\>gpc hello.pas -o hello.exe
>
> I got the next message:
> C:\DJGPP\BIN/ld.exe: cannot open crt0.o: No such file or directory (ENOENT)
>
> I checked if crt0.o existed (it did). I also tried to put the directory
> (C:\DJGPP\LIB) in my PATH-variable, but still the same response. In the
> info file I read something about setting the variable GPC_EXEC_PREFIX. I
> tried this (in DJGPP.ENV and AUTOEXEC.BAT) but it still didn't work.
> Here are my program, my AUTOEXEC.BAT and my DJGPP.ENV files:
>
> [...]
>
> DJGPP.ENV:
>
> [...]
>
> [gcc]
> COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin
> LIBRARY_PATe=%/>;LIBRARY_PATH%%DJDIR%/lib;%DJDIR%/contrib/grx20/lib
>
> [...]
>
> [gpc]
> GPC_EXEC_PREFIX=%/>;GPC_EXEC_PREFIX%%DJDIR%/lib

From the GPC installation instructions (you might have an older
version which does not yet contain this):

8< ------------

    Finally, add these lines to your \djgpp\djgpp.env file:

    --------- cut here ------- cut here ---------

    [gpc-cpp]
    C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include

    [gpc]
    COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin
    LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib

8< ------------

Hope this helps,

    Peter

      e-mail:  peter DOT gerwinski AT uni-essen DOT de
home address:  D\"usseldorfer Str. 35, 45145 Essen, Germany
         WWW:  http://agnes.dida.physik.uni-essen.de/~peter/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019