|
:(在windows下用minGW编译,按照说明在ace/config.h 中加入以下3行
#include "ace/config-win32.h"
#define ACE_HAS_WCHAR
#define ACE_USES_WCHAR
最后报错:
In file included from OS_NS_stdio.cpp:12:
m:/c++/ACE_wrappers/ace/OS_NS_stdio.inl: In function `FILE* ACE_OS::fdopen(void*, const ACE_TCHAR*)':
m:/c++/ACE_wrappers/ace/OS_NS_stdio.inl:519: error: invalid conversion from `const ACE_TCHAR*' to `wchar_t*'
m:/c++/ACE_wrappers/ace/OS_NS_stdio.inl:519: error: initializing argument 2 of `FILE* _wfdopen(int, wchar_t*)'
OS_NS_stdio.cpp: In function `FILE* ACE_OS::fopen(const char*, const ACE_TCHAR*)':
OS_NS_stdio.cpp:194: error: invalid conversion from `const ACE_TCHAR*' to `wchar_t*'
OS_NS_stdio.cpp:194: error: initializing argument 2 of `FILE* _wfdopen(int, wchar_t*)'
OS_NS_stdio.cpp: In function `FILE* ACE_OS::fopen(const wchar_t*, const ACE_TCHAR*)':
OS_NS_stdio.cpp:238: error: invalid conversion from `const ACE_TCHAR*' to `wchar_t*'
OS_NS_stdio.cpp:238: error: initializing argument 2 of `FILE* _wfdopen(int, wchar_t*)'
make[1]: *** [.shobj/OS_NS_stdio.o] Error 1
make[1]: Leaving directory `m:/c++/ACE_wrappers/ace'
make: *** [ACE] Error 2
如果没有
#define ACE_HAS_WCHAR
#define ACE_USES_WCHAR
这两行就没问题。。。 |
|