CString的问题!紧急求救!
CString的问题!紧急求救!
我使用win32 console建立项目文件,因为要用到CString,我手工添加
#include <afx.h> //define the type cstring
到类的定义文件中,可是编译时候出错提示:
--------------------Configuration: ys2 - Win32 Debug--------------------
Compiling...
calculator.cpp
CFileTRP.cpp
convert.cpp
Tst_File.cpp
Linking...
nafxcwd.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in libcpd.lib(delop.obj)
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/ys2.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Creating browse info file...
ys2.exe - 4 error(s), 0 warning(s)
问题就处在这个afx.h上,它的一些函数已经被定义过libcpd.lib,我怎么解决呢?