就是我最近在学MFC,我自己照书上编的MFC程序直接运行时能运行,但再次打开时,编译正确,但运行时就会提示有错误,我把生成的那些文件都添加进去了啊,错误如下:
--------------------Configuration: EditBox - Win32 Debug--------------------
Linking...
LINK : warning LNK4098: defaultlib "mfc42d.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "mfcs42d.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "msvcrtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "mfco42d.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
libcd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/EditBox.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.EditBox.exe - 1 error(s), 0 warning(s)不知道是什么原因,请高手教教我,谢谢!
--------------------Configuration: EditBox - Win32 Debug--------------------
Linking...
LINK : warning LNK4098: defaultlib "mfc42d.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "mfcs42d.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "msvcrtd.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "mfco42d.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
libcd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/EditBox.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.EditBox.exe - 1 error(s), 0 warning(s)不知道是什么原因,请高手教教我,谢谢!
解决方案 »
- vista系统下的软件开发
- TCP/IP方式建立连接时,客户端发送数据的端口是随机的吗?是否能指定客户端的发送端口?
- 关于CDC类,高手请进
- 用VC如何实现增加API的功能
- 怎么把一个整数值显示在dialog的谋位置?
- 如何转换这个变量?
- CCtrlList进行大量数据更新时程序要等待很久,像死机了一样,怎么解决啊!?
- error C2065: “IDD_DataDlg”: 未声明的标识符
- 高分请教菜鸟问题(图象方面)。急!急!急!!!
- TRY{ } CATCH{ }的作用.
- 为什么程序运行时在debug模式下会在wdmaud.drv 处弹框,而且在调用堆栈里看不到自己代码的出错位置
- _RecordsetPtr打开本地RS文件失败
http://blog.csdn.net/jinhill/archive/2008/12/22/3580528.aspx
Category->Procomplied Hearders
选择No Using Procomplied Hearders
你还可以
2.在*.cpp中的开头加入#include "stdafx.h",加在最开始的地方。