getopt.h missing in aix 7.1
getopt.h missing in aix 7.1
我很难弄清楚如何在AIX7.1中添加getopt.h。我在代码中使用getopt_long
函数,我知道它在getopt.h中,而不是unistd.h(它包含getopt()
)。
此代码不是在AIX:中编译的
fatal error: getopt.h: No such file or directory
#include <getopt.h>
^
compilation terminated.
以下是安装的gcc软件包:
gcc-4.8.3-1.aix7.1.ppc.rpm
gcc-c++-4.8.3-1.aix7.1.ppc.rpm
libgcc-4.8.3-1.aix7.1.ppc.rpm
gcc-cpp-4.8.3-1.aix7.1.ppc.rpm
我已经浏览了这些链接,但它们没有太大帮助:
- http://www.ibm.com/developerworks/aix/library/au-unix-getopt.html#sthash.Loz3H0AH.dpuf
- http://www.linuxmisc.com/8-freebsd/eb9bdab1cf6044d5.htm
还有很多其他的网络搜索。
我是缺少了一些rpms,还是缺少了一些环境变量?
getopt_long
仅是GNU,但您可以获得免费实现(例如,如果我理解正确的话,这声称它是BSD许可证)或编写自己的实现(不那么难)并在代码中使用它。
相关文章:
- netcat command in c++
- Difference in displaying cv2 Mat
- C++ MFC Libraries in Travis CI
- 如何在OpenSSL中从configuration.h.in获取configuration.h
- 创建具有 new in 函数和"this is nullptr"异常的对象
- IN, OUT, INOUT Parameters
- 应用程序崩溃并显示"symbol _ZdlPvm, version Qt_5 not defined in file libQt5Core.so.5 with link time reference"
- 有人安装"IITB Simplecpp in mac"吗?
- 从 C 样式字符串中删除子字符串 "in place" 在C++代码中
- 如何修复"error: ‘_1’ was not declared in this scope"?
- Softmax Implementation in C++
- 将 out/in out 参数与 if/switch 的 init 语句一起使用
- IF-nesting in c++
- Gurobi GRBModel and GRBmodel in C++
- Tensorflow Hub in C++
- Centos7 g++ "to_string is not in a member of std"
- InitializeCriticalSectionEx Not Located In KERNEL32.Dll
- 将 lambda 表达式传递给 std::function in C++
- @CPPFLAGS@在 Makefile.in 中意味着什么?
- getopt.h missing in aix 7.1