编译 ipsec 工具时出错...PATH_IPSEC_H 实际上是什么意思?
正如我在标题中所说。我现在正在尝试编译 libipsec,但遇到了很大的困难(没有使用它打算编译的 C 库)。我的许多错误都是由 #include PATH_IPSEC_H
行引起的
,但是 path_ipsec_h 从未在任何地方声明过,而且它看起来不像 C 关键字...
PATH_IPSEC_H
的实际含义是什么?此行是否相当于#include
?
如果我没有提供正确的信息...抱歉...我对此还是新手。只要告诉我你需要知道什么。
Like I said in the title. I'm trying to compile libipsec right now and am having a world of difficulty (not using the C library it was intended to be compiled on). Many of my errors are caused from the line
#include PATH_IPSEC_H
,but path_ipsec_h is never declared anywhere and It does not seem like a C keyword...
What does PATH_IPSEC_H
actually mean? Would this line be equivalent to #include <ipsec.h>
?
If I did not provide the correct information...sorry..I'm still new to this. Just tell me what you need to know.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查找名为 config.h 的文件,它很可能会将此符号定义为适合您环境的正确值。我快速浏览了 随机选择的 ipsec 文件,它开始:
这表明
PATH_IPSEC_H
要么由config.h
定义,要么传入编译此文件时的命令行。#include "config.h"
行的存在使得(在我看来,在没有任何关于这个特定库的先验知识的情况下)成为最有可能的选择。更新:此外,这个
config.h
文件很可能是由某些构建工具创建的,即它可能不存在,除非您运行了正确的工具来生成通常在分析您的环境之后。Look for a file named
config.h
, it is very likely to define this symbol to the proper value for your environment. I took a quick look in a randomly-chosen ipsec file, and it starts:This indicates either that
PATH_IPSEC_H
is defined byconfig.h
, or passed in on the command line when compiling this file. The presence of the#include "config.h"
line makes that (in my opinion, without any prior knowledge of this particular library) the most likely choice.Update: also, it's very likely that this
config.h
file is created by some build-tool, i.e. it's probably not there unless you've run the proper tool to generate it, typically after analyzing your environment.