Dev*_*dom 1 c++ windows compiler-errors
我正在尝试在WinXP机器上使用Dev-C++编译以下代码:
#include <windows.h>
int APIENTRY _tWinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow
)
{
MSG msg;
while (GetMessage(&msg, NULL, 0, 0))
return 0;
}
Run Code Online (Sandbox Code Playgroud)
我收到以下错误消息;
C:\ crossdev\src\mingw-w64-v3-git\mingw-w64-crt\crt\crt0_c.c未定义引用`WinMain @ 16'
我已经搜索了错误消息,但我不明白什么是错的.
提前致谢.
PS:我是c ++的真正的菜鸟很抱歉,如果这对你们来说很明显.
| 归档时间: |
|
| 查看次数: |
5814 次 |
| 最近记录: |