![]() |
【转帖】odsetlocale
odsetlocale
odsetlocale error c2664: '_wsetlocale' : cannot convert parameter 2 from 'const odchar *' to 'const wchar_t *' i just added the 2.4.1 liraries/headers to my existing project, and i am getting spammed with compiler errors like the ones above. i know there has got to be a compiler option i am missing, but i must admit i hacked your headers for 2.3.0 to use: code: _wsetlocale(_category, _origlocale); instead of code: _wsetlocale(_category, _origlocale.c_str()); any quick suggestions on where to start? tracked it down to wchar_t as a built in type. if i set this to false, all is well. this is a dd error in odsetlocale.h, and your correction is right. (we'll include that fix in the next update). was that fix not sufficient, to compile with /zc:wchar_t+ ? vladimir my "fix" on your headers does work, as does leaving your headers be and not using wchat_t as built in. i prefer not modifying any headers other than my own, as it prevents this kind of thing in the future (where i forget it and it becomes an issue when 2.5.1 comes out). |
所有的时间均为北京时间。 现在的时间是 04:59 PM. |