我用Atl写了一个Composite control,在Debug下编译通过,运行良好。可是在Release下出现“怪事”:
Linking...
Creating library ReleaseMinSize/ProjectGrid.lib and object ReleaseMinSize/ProjectGrid.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseMinSize/ProjectGrid.dll : fatal error LNK1120: 1 unresolved externals
请大家帮帮忙,谢谢~~
Linking...
Creating library ReleaseMinSize/ProjectGrid.lib and object ReleaseMinSize/ProjectGrid.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseMinSize/ProjectGrid.dll : fatal error LNK1120: 1 unresolved externals
请大家帮帮忙,谢谢~~
解决方案 »
- 我现在有个静态框,通过GetDlgItem(IDC_STATIC1)->GetWindowRect(&m_static1)获得静态框尺寸。
- MFC开发工控组态软件中的界面切换问题?
- 求教!急,在线等待!
- ObjectARX 中利用MFC创建一个无模式对话框 如何确定其参数?
- EDIT背景颜色的设置问题
- 谁有Visual Studio6的第二张光盘?
- datatimepick控件的使用
- 是不是所有的消息处理函数都是由系统调用的 回调函数?
- 关于在子线程中创建对话框的问题。
- CListCtl 的GetItem为什么调用不成功? 得到得值为空
- 如何解决socket通信经常报内存错误和断开连接的毛病?
- 一个疑问:是否在大图标方式下的CListCtrl图标不能显示多个不同的图标,即不同的记录不同的图标显示???
不过意思是说你的_MAIN内部符号没有解析,仔细检查下看使用的的各处有写错的没。
HOWTO: Visual C++ 5.0 (Professional & Enterprise) Support FAQQ167654Q. What causes linker error LNK2001 during Release MinDependency builds of
ATL projects?A. This can happen when the C Run-Time (CRT) startup code is required for
some CRT functions. You can either remove all references to the CRT
functions or remove the _ATL_MIN_CRT preprocessor definition from your
compiler settings.