delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/11/28/01:36:03

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Andris Pavenis <pavenis AT latnet DOT lv>
To: djgpp AT delorie DOT com
Subject: Re: version followup..pascal question
Date: Fri, 28 Nov 2003 08:34:48 +0200
User-Agent: KMail/1.5.93
References: <2gddsvkqvq4o8cnc8l5rp39e42nchu5moe AT 4ax DOT com>
In-Reply-To: <2gddsvkqvq4o8cnc8l5rp39e42nchu5moe@4ax.com>
MIME-Version: 1.0
Message-Id: <200311280834.49060.pavenis@latnet.lv>
Reply-To: djgpp AT delorie DOT com

On Friday 28 November 2003 04:49, Drew wrote:
> Ignore that lat post.  It was gcp -v.  Apologies for the silly
> question!
>
> Now for a new one.  I am trying to compile a simple Pascal program
> with GNU pascal.
>
> gpc -v says i am running:
> gpc version 20030830, based on gcc-3.2.2
>
> gcc -v says i am running:
> gcc version 3.3.2
>
> When I compile a Pascal program, I get the following error:
> c:/djgpp/bin/ld.exe: cannot find -lgcc
>
> I installed pascal correctly in the djgpp folder.  My C programs all
> compile okay.  Is there a newer version of GNU Pascal I need.  I
> wonder if the fact that I have gcc 3.3.2 but Pascal based on gcc 3.2.2
> is causing the problem.

You need gcc-3.2.2 (C compiler is emough) to be installed to use this build of 
GPC. Contents of directory lib/gcc-lib/djgpp/3.22 with subdirectories is 
perhaps sufficient, but note that object files generated by gcc-3.2.2 for 
DJGPP could be binary incompatible with other versions. You can verify that 
for example using C function div(). If libc.a is compiled with different 
version, then using div() in program compiled with gcc-3.2.2 for DJGPP will 
give wrong result.

Andris

- Raw text -


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