Mail Archives: djgpp/2003/11/28/01:36:03
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 -