www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/09/07:26:02

From: xais AT juno DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: stdlib.h errors (corrupt djgpp copy?)
Date: Fri, 09 Apr 1999 02:46:09 GMT
Organization: Deja News - The Leader in Internet Discussion
Lines: 33
Message-ID: <7ejplf$hdv$1@nnrp1.dejanews.com>
References: <7ei0ef$dtr$1 AT news DOT koti DOT tpo DOT fi>
NNTP-Posting-Host: 207.67.188.19
X-Article-Creation-Date: Fri Apr 09 02:46:09 1999 GMT
X-Http-User-Agent: Mozilla/4.05 [en] (Win95; I)
X-Http-Proxy: 1.0 x10.dejanews.com:80 (Squid/1.1.22) for client 207.67.188.19
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

This problem is keeping me from do any coding.  I use C++ and when I include
stdlib.h I get the output shown at below.

What the below section is complaining about is the declaration on line 140 in
stdlib.h :

ln 139:   #ifdef_cpluscplus
ln 140:   }
ln 141:   #endif

????????????? how can this unmodified file have parser errors in it?  Could my
copy of djgpp be corrupt?  I've just installed djgpp v2.02.  I got that error
before and after the new installation.  Maybe the compiler installation?

-Sai Thao ------------------------------------------------ gcc version 2.8.1 
c:/djgpp/bin/cpp.exe -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2
-D__cplusplu s -D__GNUC_MINOR__=8 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2
-DDJGPP_MINOR=1 -D__ unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2
-D__DJGPP_MINOR__=1 -D__u nix -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2
-D__DJGPP_MINOR=1 -D__EXCEPTIONS -Wa ll main.cpp c:/djgpp/tmp/ccayyswb GNU
CPP version 2.8.1 (80386, BSD syntax) #include "..." search starts here:
#include <...> search starts here:  c:/djgpp/contrib/grx22/include 
c:/djgpp/lang/cxx  c:/djgpp/lib/gcc-lib/djgpp/2.81/include  c:/djgpp/include
End of search list.  c:/djgpp/bin/cc1plus.exe c:/djgpp/tmp/ccayyswb -quiet
-dumpbase main.cc -Wall - version -o c:/djgpp/tmp/ccbyyswb GNU C++ version
2.8.1 (djgpp) compiled by GNU C version 2.8.1. In file included from
c:/djgpp/include/allegro.h:54,	from main.cpp:20:
c:/djgpp/include/stdlib.h:7: syntax error before string constant In file
included from c:/djgpp/include/allegro.h:54,  from main.cpp:20:
c:/djgpp/include/stdlib.h:140: parse error before `}'

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

- Raw text -


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