www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/19/10:15:29

From: "James Whitmire" <jwhitmir AT netscape DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: compiling gnu pascal under djgpp
Lines: 41
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <ohlM9.35$T5.65150@news.alltel.net>
Date: Thu, 19 Dec 2002 15:08:04 GMT
NNTP-Posting-Host: 162.40.203.15
X-Complaints-To: abuse AT alltel DOT net
X-Trace: news.alltel.net 1040310484 162.40.203.15 (Thu, 19 Dec 2002 09:08:04 CST)
NNTP-Posting-Date: Thu, 19 Dec 2002 09:08:04 CST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I installed gpc on a Win2K PC with DJGPP.

1) It will compile a Hello.c =>

   #include <stdio.h>

   int main(void) {
     printf("Hello World\n");
     return 0;
   }

 using "gcc -o hello.exe hello.c";

 But not
   program hello(input, output);
   begin
     Writeln('Hello World');
   end.

 using "gpc 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".

The copy of DJGPP was taken off the delorie website (djdev203.zip) about 1
month ago.  I've read the FAQ's.  Have the correct path:
   "DJGPP => c:\djgpp\djgpp.env".
and copied [gcc] contents to [gpc] in the file djgpp.env.  Can you give me a
possible next step to investigate?

Jim Whitmire.



- Raw text -


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