我正在做一个从windows到wince的转换工作。 对于使用iostream我选择STLport5.2.1
。 我得到VS2008编译错误:Wince 5.0使用STLport void * operator new(size_t,void *)'已经有一个body
时许文件(x86)\ Windows CE的工具\ wce500 \ athenapbws \ MFC \包括\ wcealt.h(248):错误C2084:函数“void *运营商new(size_t,void *)'已经有一个主体
2> D:\ Program Files(x86)\ Windows CE Tools \ wce500 \ AthenaPBWS \ include \ ARMV4I ../ Armv4i/new(71) 'new'的定义
2> d:\ program files(x86)\ windows ce tools \ wce500 \ athenapbws \ mfc \ include \ wcealt.h(254):error C2084:function'void operator delete(void * ,void *)'已经有一个body
2> d:\程序文件(x86)\ Windows CE的工具\ wce500 \ AthenaPBWS \包括\ ARMV4I ../ ARMV4I /新(73):看到的 '删除' 以前的定义
2> Util1 .cpp 2> D:\ Program Files(x86)\ Windows CE Tools \ wce500 \ AthenaPBWS \ include \ ARMV4I ../ Armv4i/new(72):error C2084:function'void * operator new(size_t,void *) “已经有一个身体
2> d:\程序文件(x86)\ Windows CE的工具\ wce500 \ athenapbws \ MFC \包括\ wcealt.h(247):看前面的定义 '新'
2> D:\ Program Files(x86)\ Windows CE工具\ wce500 \ AthenaPBWS \ include \ ARMV4I ../ Armv4i/new(74):error C2084:function'void operator delete(void *,void *)'has has a body
2> d:\ program files( (253):请参阅先前定义的'删除'
如何解决错误?
编译Windows CE 5.0时需要VS2005或VS2008。两者都带有用于Windows CE的STL版本。当你只需要iostream时,为什么不使用这个STL实现? – harper