我在 Manjaro GNU/Linux 上使用 IUP,我正在尝试从这个站点编译第一个示例程序。但是,编译器说它无法找到iup.h
. 我使用 yaourt 安装了 IUP,安装了名为iup-all-bin
.
我应该将我的#include
指令更改iup.h
为什么?
编辑:感谢其中一条评论,我能够找到头文件和库文件(我想!),但现在,我从 GCC 得到了这个错误:
$gcc hello0.c -I/usr/include/iup-3.7/ -L/usr/lib -o hello0
/tmp/ccMAbPwz.o: In function `main':
hello0.c:(.text+0x1e): undefined reference to `IupOpen'
hello0.c:(.text+0x28): undefined reference to `IupLabel'
hello0.c:(.text+0x30): undefined reference to `IupDialog'
hello0.c:(.text+0x38): undefined reference to `IupShow'
hello0.c:(.text+0x3d): undefined reference to `IupMainLoop'
hello0.c:(.text+0x42): undefined reference to `IupClose'
collect2: error: ld returned 1 exit status
我知道libiup.so
(连同所有非 Lua 库)在 中/usr/lib
,并且头文件在/usr/include/iup-3.7