I recently upgraded to DevCPP 4.9.7.0 GCC 3.2 and was really excited when I found out that wstring isn't commented out by default anymore. However, it still doesn't work! Just an empty console program that declares a wstring (or basic_string<wchar_t>) doesn't compile. All other string types, e.g. basic_string<bool> work...
I have done a bit of research in the string header files that come with DevCPP and found the following lines in c++config.h:
// Define if code specialized for wchar_t should be used.
/* #undef _GLIBCPP_USE_WCHAR_T */
So it seems that the libstdc++.a that comes with DevCPP wasn't compiled to work with wchars, right? How to I fix this? Does it have to do with that macro anyway? How is it possible that only wstring's functions are all undefined, whereas every other string works?
...
:/
Julian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I recently upgraded to DevCPP 4.9.7.0 GCC 3.2 and was really excited when I found out that wstring isn't commented out by default anymore. However, it still doesn't work! Just an empty console program that declares a wstring (or basic_string<wchar_t>) doesn't compile. All other string types, e.g. basic_string<bool> work...
I have done a bit of research in the string header files that come with DevCPP and found the following lines in c++config.h:
// Define if code specialized for wchar_t should be used.
/* #undef _GLIBCPP_USE_WCHAR_T */
So it seems that the libstdc++.a that comes with DevCPP wasn't compiled to work with wchars, right? How to I fix this? Does it have to do with that macro anyway? How is it possible that only wstring's functions are all undefined, whereas every other string works?
...
:/
Julian