g++ & _XOPEN_SOURCE
Kevin Dorne
sweetpea at tentacle.net
Mon Jan 31 03:47:03 PST 2005
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-standards/attachments/20050201/02652528/PGP.bin
More information about the freebsd-standards
mailing list