I am using MingW 4.4.0 (you should really upgrade) and Boost 1.39, and I had an issue with wide characters that I could not find a solution to anywhere on the internet.
What worked for me was to comment out the lines 159 and 166 in the file mingw\lib\gcc\mingw32\4.4.0\include\c++\cwchar. Here is how my modified file looks, starting from line 157 to give some context:
using ::putwc; using ::putwchar;// using ::swprintf; // DOES NOT COMPILE FOR WHATEVER REASON using ::swscanf; using ::ungetwc; using ::vfwprintf;#if _GLIBCXX_HAVE_VFWSCANF using ::vfwscanf;#endif// using ::vswprintf; // DOES NOT COMPILE FOR WHATEVER REASON#if _GLIBCXX_HAVE_VSWSCANF using ::vswscanf;#endif using ::vwprintf;#if _GLIBCXX_HAVE_VWSCANF using ::vwscanf;#endif
Of course I'd prefer a real solution, but it works for me.
Oh, I may have misunderstood. You are compiling Boost? I was merely using the templates.