error: '::swprintf' has not been declared
Hi. I was trying to compile an example program I found on (and copied straight off) Boost's getting started page, using MinGW's g++ and MSYS' make, when I got the following compiling result:
"error: '::swprintf' has not been declared". What can cause this problem? Has anyone had the same or a similar problem before? Thanks in advance!
-*- mode: compilation; default-directory: "d:/Work/Programs/Test_programs/boost_test/" -*-
Compilation started at Wed May 05 23:37:27
g++ main.cpp -Wall -Wextra -pedantic -g -std=c++98 -IC:/Program1/boost_1_42_0 -lmingw32 -c #Create .o files
In file included from c:\program1\qt\2010.02.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/bits/postypes.h:42,
c:\program1\qt\2010.02.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:159: error: '::swprintf' has not been declared
c:\program1\qt\2010.02.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:166: error: '::vswprintf' has not been declared
make: *** [main.o] Error 1
make: Target `all' not remade because of errors.
Compilation exited abnormally with code 2 at Wed May 05 23:37:30