Mail Archives: djgpp/2003/12/17/17:02:19
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f
|
From: | Peter Gertner <peter DOT gertner AT gmx DOT de>
|
Subject: | [GPC] "cannot find -lgcc"
|
Newsgroups: | comp.os.msdos.djgpp
|
User-Agent: | 40tude_Dialog/2.0.7.1
|
MIME-Version: | 1.0
|
Date: | Wed, 17 Dec 2003 22:46:09 +0100
|
Message-ID: | <1n1fid5gv57x1.tdz7w1cj7vq8.dlg@40tude.net>
|
Lines: | 28
|
NNTP-Posting-Host: | 213.7.168.133
|
X-Trace: | 1071697570 news.freenet.de 14463 213.7.168.133:1880
|
X-Complaints-To: | abuse AT freenet DOT de
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hello,
Though I have a question about the GPC compiler, I hope that you could help
me, as there is no newsgroup for the GPC compiler.
I use DJgpp in the command line of Windows98SE (i.e. DOS 7.1) and
(hopefully?) installed it properly. A simple "Hello World" program, written
in C, can be compiled without any problems using gcc.
But if I try to compile a Pascal program using the Gnu Pascal Compiler
(GPC), I always get an error from ld.exe, telling me that the linker can't
find -lgcc.
The source file looks as follows:
> program Pi;
> var i : integer;
> begin
> i := 5*5 + 2;
> end.
Nothing very complex (I don't even use output to make sure, that the
program does not need any other units/libraries).
Then, I try to compile this source using
> gpc filename.pas
This results in the error
> e:/djgpp/bin/ld.exe: cannot find -lgcc
If I search for this library (gcc.a), I can't find it anywhere.
Has someone of you already experienced this problem and can tell me how to
fix it?
Thanks in advance
Peter Gertner
- Raw text -