在SWIG编译中:在接口的头文件中无法解析其他头文件。 [英] In SWIG compilation : In header file in interface is unable to resolve other header files.

查看:189
本文介绍了在SWIG编译中:在接口的头文件中无法解析其他头文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

In interface File. I have included a header file.In that Header file there are many header files included but from top tree bases But in Swig is not able to recognize those

例如:

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

Swig无法解析头文件中的dir

Swig is unable to resolve that dir in the header file

推荐答案

使用

-I<dir>

告诉SWIG有关它不知道的包含路径。

on the SWIG command line to tell SWIG about include paths it doesn't know about.

请参阅 SWIG 2.0命令行文档

这篇关于在SWIG编译中:在接口的头文件中无法解析其他头文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆