Date: Wed, 21 Nov 2001 18:42:03 +0200 (WET) From: Andris Pavenis X-Sender: pavenis AT ieva06 To: djgpp-workers AT delorie DOT com Subject: GCC option -ansi and libstdc++-v3 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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