我正在使用 cywin 在 Windows 上编译 crashme 源代码,但我正面临一些编译错误。
错误:
crashme.c: In function 'vfork_main':
crashme.c:594: warning: incompatible implicit declaration of built-in function ‘execl’
Run Code Online (Sandbox Code Playgroud)
虽然源代码包含 unistd.h,但错误仍然存在。请帮助我如何解决这个问题。
也许缺少#include了的“系统”标题定义execl(即<unistd.h>在Linux上)。
要找出包含的内容,请使用gcc -H -c foo.c和使用gcc -C -E -Wall foo.c > foo.i获取预处理的表单。
| 归档时间: |
|
| 查看次数: |
7044 次 |
| 最近记录: |