Date: Tue, 1 Feb 2005 00:47:01 +1300 From: Kevin Dorne <sweetpea@tentacle.net> To: freebsd-standards@freebsd.org Subject: g++ & _XOPEN_SOURCE Message-ID: <634a43e57953fdc11c0240cc3ae606df@tentacle.net>
next in thread | raw e-mail | index | archive | help
--Apple-Mail-2-15802341 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed I have been working on getting lurker (http://lurker.sourceforge.net) to compile on FreeBSD. I managed to do it by removing all #define _XOPEN_SOURCE 500 from the source files, but the application's author suggested that such behaviour signified a major bug in libc/c++. For example, compiling just this file #define _XOPEN_SOURCE 500 #include <string> Gave me this error: In file included from /usr/include/c++/3.4/bits/postypes.h:46, from /usr/include/c++/3.4/iosfwd:50, from /usr/include/c++/3.4/bits/stl_algobase.h:70, from /usr/include/c++/3.4/bits/char_traits.h:46, from /usr/include/c++/3.4/string:47, from xx.cpp:2: /usr/include/c++/3.4/cwchar:166: error: `::vfwscanf' has not been declared /usr/include/c++/3.4/cwchar:170: error: `::vswscanf' has not been declared /usr/include/c++/3.4/cwchar:174: error: `::vwscanf' has not been declared /usr/include/c++/3.4/cwchar:191: error: `::wcstof' has not been declared Is this a bug or a feature? Cheers, -k --Apple-Mail-2-15802341 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (Darwin) iD8DBQFB/hq1WPypEt5k4n0RAt4GAKDx4fftGshleqtteJ+FFQE6V85/wQCgoApc sDJGNVwmcf053B5ztfLuvQs= =cRXD -----END PGP SIGNATURE----- --Apple-Mail-2-15802341--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?634a43e57953fdc11c0240cc3ae606df>