atl 中使用标准C++函数编译不过

hardVB hardVB 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我的程序使用了标准C++的一些函数,在debug下可以compile与Linking,

但在Mini size与mini dependence compile不通过,提示为
LIBCMT.lib(fpinit.obj) : error LNK2005: __fltused already defined in StdAfx.obj
LIBCMT.lib(fpinit.obj) : warning LNK4006: __fltused already defined in StdAfx.obj; second definition ignored
Creating library ReleaseMinDependency/ShadowGraper.lib and object ReleaseMinDependency/ShadowGraper.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseMinDependency/ShadowGraper.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

后来我去掉了 "_ATL_MIN_CRT" 选项,
D:\LUXOOM\ShadowGraper\HumanMotion.cpp(11) : warning C4651: '/D_ATL_MIN_CRT' specified for precompiled header but not for current compile
HumanMotion.obj : error LNK2001: unresolved external symbol _cvDestroyWindow
HumanMotion.obj : error LNK2001: unresolved external symbol _cvReleaseCapture
HumanMotion.obj : error LNK2001: unresolved external symbol _cvCvtColor
HumanMotion.obj : error LNK2001: unresolved external symbol _cvLine
HumanMotion.obj : error LNK2001: unresolved external symbol _cvChangeSeqBlock
HumanMotion.obj : error LNK2001: unresolved external symbol _cvStartReadSeq
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
...全文
评论 7
收藏 已收藏
分享
返回顶部
hardVB
ATL 3,248 成员 48,530 内容