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