【问题标题】:How to get source and header files如何获取源文件和头文件
【发布时间】:2021-03-15 09:12:47
【问题描述】:
我正在处理一个全双工通信项目,我们需要以下文件:
#include <arpa/inet.h>,
#include <sys/socket.h>,
#include <netinet/in.h>
当我在没有这些文件的情况下编写程序时出现错误:
../development/src/../include/gxobjects.h:1604:14:错误:字段
“primaryDNSAddress”的类型不完整
IN6_ADDR 主DNS地址;
^~~~~~~~~~~~~~~~~ ../development/src/../include/gxobjects.h:1605:14:错误:字段
'secondaryDNSAddress' 的类型不完整
IN6_ADDR 二级DNS地址;
^~~~~~~~~~~~~~~~~~~
当我声明IN6_ADDR.
请给我链接,我可以从哪里得到这些文件。
【问题讨论】:
标签:
c
shared-libraries
header-files
【解决方案2】:
我有一个 C 代码并希望该代码在嵌入式 C 中传输。我的 IP 地址有问题。我刚刚在 MPLAB X 中添加了所有十六进制和源文件,它显示错误为:
In file included from ../development/src/../include/objectarray.h:41:0,
from ../development/src/../include/dlmssettings.h:42,
from ../development/src/../include/apdu.h:36,
from ../development/src/apdu.c:37:
../development/src/../include/gxobjects.h:42:20: fatal error: in6addr.h: No such file or directory
#include<in6addr.h>
^
compilation terminated.
make[2]: *** [build/default/production/_ext/530717503/apdu.o] Error 255