5

win32编程

 3 years ago
source link: https://www.oschina.net/question/4600729_2320507
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

win32编程

and_or 发布于 前天 12:40
阅读 157

对单个的c++源文件在dev-c++上编译出现如下图编译报错,源程序没有语法错误,我看到有一些说法是,没有正确设置要链接的windows库,这怎么解决?图如下:

up-cc082b934d79a5e0db045c31391a185812a.png
善良超哥哥
前天 16:36

#include <windows.h>试试

and_or
昨天 21:47
这个头文件已经写在源代码里了,应该不会是这个问题
tcxu
昨天 11:28

undefined reference to 'WinMain@16 ' 意思为提示找不到 WinMain 函数,有几种可能:

  1. int main() 写成了 int mian() ,即找不到函数。
  2. 有可能是找不到一个参数字节总数为16个的XXX函数。

答案取自 博客 “ 出现undefined reference to 'WinMain@16'的可能情况 ”,其网址无法显示。

楼主所说的案例,原因不止一个。 不知楼主的具体情况,请就具体情况,到网上寻求你的答案。如:


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK