描述:
一个ATL工程,无论怎么设置“ATL的使用”和“在ATL中最小化使用CRT”,debug模式下总能编译通过,release模式下总是编译通不过。典型的出错如下:
f:\NewMot\MotleyFool4\Books.cpp warning C4651: 为预编译头,而非为当前编译指定“/D_ATL_DLL”
f:\NewMot\MotleyFool4\Books.cpp warning C4651: 为预编译头,而非为当前编译指定“/D_ATL_MIN_CRT”
f:\NewMot\MotleyFool4\Books.cpp(64): warning C4101: “k” : 未引用的局部变量
MotleyFool error LNK2005: __osplatform 已经在 atlmincrt.lib(atlinit.obj) 中定义
MotleyFool warning LNK4222: 不应为导出符号“DllCanUnloadNow”分配序号
MotleyFool warning LNK4222: 不应为导出符号“DllGetClassObject”分配序号
MotleyFool warning LNK4222: 不应为导出符号“DllRegisterServer”分配序号
MotleyFool warning LNK4222: 不应为导出符号“DllUnregisterServer”分配序号
MotleyFool warning LNK4006: __osplatform 已在 atlmincrt.lib(atlinit.obj) 中定义;已忽略第二个定义
MotleyFool error LNK2019: 无法解析的外部符号 _main ,该符号在函数 _mainCRTStartup 中被引用
MotleyFool fatal error LNK1120: 1 个无法解析的外部命令