delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/11/14:30:14

Newsgroups: comp.os.msdos.djgpp
From: Xeno Antares <xeno AT antares DOT scorpio DOT space DOT nsa DOT gov>
Date: Wed, 11 Dec 2002 04:21:38 GMT
Message-ID: <3eb011b1036c6013e1b1638d92904762@antares.4ax.com>
References: <qypH9.657$bH DOT 70595 AT news DOT alltel DOT net>
MIME-Version: 1.0
Subject: Re: installing gpc under djgpp
Lines: 63
NNTP-Posting-Host: 213.7.163.197
X-Trace: 1039634604 news.freenet.de 8288 213.7.163.197:1043
X-Complaints-To: abuse AT freenet DOT de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id gBBJU5T20282
Reply-To: djgpp AT delorie DOT com

On Wed, 04 Dec 2002 15:53:58 GMT, "James Whitmire"
<jwhitmir AT netscape DOT net> wrote:

> I installed gpc on a Win2K PC with DJGPP.
>
> 1) It will compile a Hello.c => [..]
> using "gcc -o hello.exe hello.c";
>
> But not Hello.pp => [..]
> using "gpc -o hello.exe hello.pas"
>
>   I get this =>
>     "gpcpp.exe: djgpp.ver: No such file or directory (ENOENT)"
>
> 2) Copied djgpp.ver from C:\DJGPP\lib\gcc-lib\djgpp\3.2 to current dir
>   and got this =>
>     "c:/djgpp/bin/ld.exe: cannot find -lgcc"
>
>  Appears to be some sort of path problem in the gpc installation.
>  "libgcc.a" is in same dir as "djgpp.ver".
>
> I've read the FAQ's.  Have correct path "DJGPP => c:\djgpp\djgpp.env".
> Copied [gcc] contents to [gpc]in djgpp.env.  Can you give me a possible
> next step to investigate?
>
> Jim.
>

I encountered the same problem using GPC 2.1 (intendet for use
together with GCC 2.95.[23]) driving GCC 3.2.1
The following modification of [gpc] and [gpcpp] sections in djgpp.env
fixed the problem:

 ,---- [ djgpp.env ] 
|  [gpc]
|  COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin
|  #LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib
|  LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;
|               %DJDIR%/lib/gcc-lib/djgpp/3.21;
|               %DJDIR%/lib/gcc-lib/djgpp/2.953/units
|  #C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include
|  C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;
|                 %DJDIR%/lib/gcc-lib/djgpp/3.21;
|                 %DJDIR%/lib/gcc-lib/djgpp/3.21/include
|  
|  [gpcpp]
|  #C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include
|  C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;
|                 %DJDIR%/lib/gcc-lib/djgpp/3.21;
|                 %DJDIR%/lib/gcc-lib/djgpp/3.21/include
 `----

All on one line, after each "="!!

A have to point out, that some modifications (ie the last LIBRARY_PATH
member) seem to be rather silly -- i introduced the changes all
together and 've been to lazy to sort out the essentials ;-)

       Hope it helps,
              --  XenoAntares

-- 
Hasta la victoria siempre  --  Che

- Raw text -


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