显示执行 link.exe 时出错,为什么?

来源:百度知道 编辑:UC知道 时间:2024/06/22 21:57:44
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
libcd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/MSNContactsDlg.exe : fatal error LNK1120: 3 unresolved externals
执行 link.exe 时出错.

MSNContactsDlg.exe - 1 error(s), 0 warning(s)
在哪儿把线程模式把它改为多线程啊?我建的就是Win32 Application,谢谢

工程类型建错了,应该建立"Win32 Application",你建成""Win32 Console Application"
------------------------------------

Win32 Application工程的入口是WinMain
Win32 Console Application工程的入口是main

------------------------------------
从你的程序错误提示来看,要么是你建错了,要么是你声明了一个叫main的函数没定义

工程类型建错了,应该建立"Win32 Application",你建成""Win32 Console Application"
------------------------------------

Win32 Application工程的入口是WinMain
Win32 Console Application工程的入口是main

------------------------------------
从你的程序错误提示来看,要么是你建错了,要么是你声明了一个叫main的函数没定义

在工程设置里面找线程模式把它改为多线程