delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/10/11:21:17

Date: Mon, 10 Jan 2000 12:22:33 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Sohel <sohel AT home DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Error in compiling C program using DJGPP
In-Reply-To: <f%5e4.15551$G55.192944@news1.rdc1.ab.home.com>
Message-ID: <Pine.SUN.3.91.1000110122208.6643F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 9 Jan 2000, Sohel wrote:

> Thank you for your suggestion. In the following I have listed the messages
> that I get when I use the -v option:
> 
> D:\DJGPP>gcc -v -o cprog.exe cprog.c
> Using builtin specs.

This is wrong: GCC shouldn't be using its builtin specs.  Please
re-read the installation instructions of GCC and see if you missed
some part of the setup.  The specs file is in the
d:/djgpp/gcc-lib/djgpp/2.952 directory; you need to make sure GCC
uses that file when compiling.

> gcc version 2.95.2 19991024 (release)
> cpp -lang -c -v -isystem
> d:/dhgpp/bin/include -D__GNUC__=2 -D__GNUC__MINOR__=95 -Dunix -Di386 -DG032 
  ^^^^^^^^^^^^^^^^^^^^
Did the message really say "d:/dhgpp/bin/include", or did you type
this manually and made a typo?

Please don't retype the message by hand: we need to see the *exact*
text as printed by the compiler.  Either redirect the output to a file
(see section 6.14 of the FAQ for details) or, if you work on Windows,
use the clipboard to copy it from the screen and paste it into a file.

> The following default directories have been omitted from the search path:
> d:/djgpp/include
> $DJDIR/lang/cxx
> $DJDIR/lib/gcc-lib/djgpp/2.952/../../../../djgpp/include
> $DJDIR/lib/gcc-lib/djgpp/2.952/include
> $DJDIR/include
> End of omitted list.
> cpp.exe: ../include/sys/version.h: No such file or directory (ENOENT)

I believe these all are caused by the same reason: GCC doesn't use the
correct specs file.

- Raw text -


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