delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/11/21/12:01:16

Date: Wed, 21 Nov 2001 18:42:03 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
X-Sender: pavenis AT ieva06
To: djgpp-workers AT delorie DOT com
Subject: GCC option -ansi and libstdc++-v3
Message-ID: <Pine.A41.4.05.10111211832360.95704-100000@ieva06>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

gcc -ansi defines __STRICT_ANSI__ which hides prototypes for some
function needed by libstdc++-v3. Here are some examples one 
can find quickly:
	lrand48()  (recent report today about compilation errors)
	strtoll() and strtoull() are also used 
	maybe some others
They are detected at configure time without specifying -ansi.
So option -ansi may screw compilation of C++ sources. The same
about defining __POSIX_SOURCE__

All these functions are not hidden when I'm compiling using option
-ansi under Linux (I'm have glibc-2.2.3) 

Andris


- Raw text -


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