|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
第一个windows程序就不顺,编译正常,出现链接错误,错误提示( VC++6.0编译 )如下:
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/第一个Windows程序1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
程序代码如下:
- // 第一个Windows程序1.cpp : Defines the entry point for the application.
- #include <windows.h>
- #include <tchar.h>
- int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
- {
- MessageBox(NULL, _T("这是我在鱼C论坛的第一个Windows程序!"), _T("提示"), MB_OK);
- return 0;
- }
复制代码 |
|