用Win32 Realese Minsize 或 Win32 Realese Mindependence方式编译用VC6.0编写的ATL COM组件时出现如下错误:
Creating library ReleaseMinSize/LearnBetterPPT.lib and object ReleaseMinSize/LearnBetterPPT.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseMinSize/LearnBetterPPT.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
解决办法:在Project------> Setting-----> C/C++----> Preprocessor definitions 下删除:_ATL_MIN_CRT即可。
更多技术文章请参看施昌权的个人网站: http://www.joyvc.cn