In SWIG compilation : In header file in interface is unable to resolve other header files.
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 Eample: main.h #include<dir/second.h> #define PAGE 1 Swig is unable to resolve that dir in the header file Use -I<dir> on the SWIG command line to tell SWIG about include paths it doesn't know about. See SWIG 2.0 command line documentation SWIG normally does not process #include files recursively. The reason is you would not want SWIG to process every system header file. You can override this with -includeall , but that is