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!Code:-*- mode: compilation; default-directory: "d:/Work/Programs/Test_programs/boost_test/" -*- Compilation started at Wed May 05 23:37:27 make -k 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, from c:\program1\qt\2010.02.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/iosfwd:42, from c:\program1\qt\2010.02.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/ios:39, from c:\program1\qt\2010.02.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/ostream:40, from c:\program1\qt\2010.02.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/iterator:65, from C:/Program1/boost_1_42_0/boost/detail/iterator.hpp:54, from C:/Program1/boost_1_42_0/boost/iterator/iterator_traits.hpp:8, from C:/Program1/boost_1_42_0/boost/indirect_reference.hpp:15, from C:/Program1/boost_1_42_0/boost/lambda/detail/operator_return_type_traits.hpp:17, from C:/Program1/boost_1_42_0/boost/lambda/lambda.hpp:23, from main.cpp:7: 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
-Kristofer



LinkBack URL
About LinkBacks


