使用Carbide 2.0 S60开发时,不经过设置,使用c标准库会出现编译错误。
正确设置方法:
找到并打开.mmp文件
增加如下两行
SYSTEMINCLUDE \epoc32\include\libc
LIBRARY estlib.lib
c++
SYSTEMINCLUDE \epoc32\include
SYSTEMINCLUDE \epoc32\include\stdapis
SYSTEMINCLUDE \epoc32\include\stdapis\sys
SYSTEMINCLUDE \epoc32\include\stdapis\stlport
STATICLIBRARY libcrt0.lib
LIBRARY libc.lib
LIBRARY euser.lib // Needed in order to use Symbian services
#ifdef EPOC32
LIBRARY libstdcpp.lib
#else
FIRSTLIB ../udeb/libstdcpp.lib
STATICLIBRARY eexe.lib
#endif
OPTION CW -wchar_t on
MACRO _WCHAR_T_DECLARED
阅读(934) | 评论(1) | 转发(0) |