gpt4 book ai didi

python - 在 SWIG 编译中 : In header file in interface is unable to resolve other header files.

转载 作者:太空狗 更新时间:2023-10-30 01:08:49 27 4
gpt4 key购买 nike

在界面文件中。我已经包含了一个头文件。在那个头文件中,包含了许多头文件,但是来自顶级树的基础但是在 Swig 中无法识别那些

示例:

main.h
#include<dir/second.h>
#define PAGE 1

Swig 无法解析头文件中的那个目录

最佳答案

使用

-I<dir>

在 SWIG 命令行上告诉 SWIG 它不知道的包含路径。

参见 SWIG 2.0 command line documentation

关于python - 在 SWIG 编译中 : In header file in interface is unable to resolve other header files.,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19446143/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com