-
-
命令行编译程序的问题
-
2006-1-7 20:09
4866
-
一个小程序test.c:
#include <windows.h>
#include <tchar.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdSize)
{
MessageBox(NULL, TEXT("Hello!!"), TEXT("World!!"), 0);
return 0;
}
我在命令行下编译:
cl test.c
出现错误:
error LNK2001: unresolved external symbol __imp__MessageBoxA@16
请问这样的程序在命令行下该怎么编译,谁能介绍几篇在命令行下编译程序的文章?不甚感激。
[培训]内核驱动高级班,冲击BAT一流互联网大厂工
作,每周日13:00-18:00直播授课