delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/11/18:00:09

Message-ID: <3DF7BFD4.8FF1604C@yahoo.com>
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: installing gpc under djgpp
References: <qypH9.657$bH DOT 70595 AT news DOT alltel DOT net> <3DEE8C90 DOT DADB8AFC AT yahoo DOT com> <1RPH9.10$iT6 DOT 33092 AT news DOT alltel DOT net> <3DF78CAF DOT 9080009 AT ujf-grenoble DOT fr>
Lines: 54
Date: Wed, 11 Dec 2002 22:50:48 GMT
NNTP-Posting-Host: 12.90.177.127
X-Complaints-To: abuse AT worldnet DOT att DOT net
X-Trace: bgtnsc04-news.ops.worldnet.att.net 1039647048 12.90.177.127 (Wed, 11 Dec 2002 22:50:48 GMT)
NNTP-Posting-Date: Wed, 11 Dec 2002 22:50:48 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Maurice Lombardi wrote:
> James Whitmire a écrit:
> 
> > My REAL problem concerns configuring DJGPP to find the paths to
> > the the djgpp.ver file and the libraries. The code in 'hello.pas'
> > was simply a short program for illustration purposes.  I added
> > the changes anyway and instead compiled with:
> >
> > => gpc hello.pas
> >
> > and got:
> >    'gpcpp.exe: djgpp.ver: No such file or directory (ENOENT)'
> >
> > I then copied djgpp from C:\DJGPP\lib\gcc-lib\djgpp\3.2 to the
> > current directory and ran:
> >
> >   => gpc hello.pas
> >
> > and got: 'c:/djgpp/bin/ld.exe: cannot find -lgcc'
> >
> > Has anyone had this problem with compiling under DJGPP?
> 
> It seems that you have overlooked an essential point with gpc:
> it needs files of the _same version number_ of gcc contained in
> the %DJDIR%\lib directory ans subdirectories.
>
> If you have a gpc based on gcc-2.95.3 you need those files which
> are put by gcc2953b in the lib directory and also in the
> lib/gcc-lib/djgpp/2.953 directory.
>
> If you have installed e.g. the latest gcc321b and try to install
> gpc2953b this won't work. To make it work you can extract files
> from gcc2953b.zip and put them in proper place. Indeed -lgcc
> looks for libgcc.a in the directory

> %DJDIR%/lib/gcc-lib/djgpp/<version>

> and the position of djgpp.ver has been moved from %DJDIR%/lib to
> %DJDIR%/lib/gcc-lib/djgpp/<version> between gcc-2.95.x and
> gcc-3.X.Y

For most people I think the problem is where to find the
appropriate gpc version.  I forget the correct URL, but you might
publish it early and often here.

So far I have no trouble with gcc 3.21 and gpc321 combination.  I
totally removed all vestiges of gcc 2.953 recently.

-- 
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!


- Raw text -


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