tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: _XOPEN_SOURCE problem?



On Thursday 08 January 2015 07:56:41 Christos Zoulas wrote:
> In article <m8m83d$2qb$1%ger.gmane.org@localhost>,
> Christos Zoulas <christos%astron.com@localhost> wrote:
>...
> I can't reproduce it; what version of the compiler and OS?

$ cat junk.cpp
#define _XOPEN_SOURCE 600
#include <string>

int main()
{
  return 0;
}
$ g++ junk.cpp
In file included from /usr/include/g++/bits/postypes.h:42:0,
                 from /usr/include/g++/bits/char_traits.h:42,
                 from /usr/include/g++/string:42,
                 from junk.cpp:2:
/usr/include/g++/cwchar:166:11: error: '::vfwscanf' has not been declared
/usr/include/g++/cwchar:172:11: error: '::vswscanf' has not been declared
/usr/include/g++/cwchar:176:11: error: '::vwscanf' has not been declared
/usr/include/g++/cwchar:193:11: error: '::wcstof' has not been declared
$ uname -a
NetBSD wallace 6.1.5 NetBSD 6.1.5 (GENERIC) i386
$ g++ --version
g++ (NetBSD nb2 20110806) 4.5.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Also same results on  5.1 / gcc 4.1.3 (i386)

And:
mirror[6]$ uname -a
NetBSD mirror 6.1.2 NetBSD 6.1.2 (GENERIC) amd64

---->~
mirror[7]$ g++ --version
g++ (NetBSD nb2 20110806) 4.5.3


--Phil



Home | Main Index | Thread Index | Old Index