This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/24012] New: [3.4,4.0,4,1 regression] #define _POSIX_C_SOURCE breaks #include <iostream>
- From: "gerald at pfeifer dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2005 15:15:54 -0000
- Subject: [Bug libstdc++/24012] New: [3.4,4.0,4,1 regression] #define _POSIX_C_SOURCE breaks #include <iostream>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following simple program fails to compile on FreeBSD 5.4:
#define _POSIX_C_SOURCE 1
#include <iostream>
g++ issues the following error message:
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd5.4/4.1.0/../../../../incl
ude/c++/4.1.0/cwchar:166:
error: '::vfwscanf' has not been declared
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd5.4/4.1.0/../../../../incl
ude/c++/4.1.0/cwchar:170:
error: '::vswscanf' has not been declared
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd5.4/4.1.0/../../../../incl
ude/c++/4.1.0/cwchar:174:
error: '::vwscanf' has not been declared
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd5.4/4.1.0/../../../../incl
ude/c++/4.1.0/cwchar:191:
error: '::wcstof' has not been declared
The FreeBSD 5.4 system compiler, which basically is GCC 3.4.2, has the
same issue.
--
Summary: [3.4,4.0,4,1 regression] #define _POSIX_C_SOURCE breaks
#include <iostream>
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gerald at pfeifer dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i386-unknown-freebsd5.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012