views:

115

answers:

1

I am trying to compile Botan on Windows with MinGW, and am receiving the following error during compilation:

c:\qt\2010.04\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:159: error:
'::swprintf' has not been declared
c:\qt\2010.04\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:166: error:
'::vswprintf' has not been declared

Why are swprintf and vswprintf not declared, and how can I fix this?

+2  A: 

Try putting in

#undef __STRICT_ANSI__ 

before including stdio.h

tholomew
Or don't compile with the -ansi switch? Looks like buggy headers.
wilx