From: William S F. <ws...@fu...> - 2011-07-12 18:40:46
|
Or use -I to specify the include path like you would with a C/C++ compiler. William On 27/06/11 09:08, Doan Viet Dung wrote: > Just modify your path like > > %include "../../zoo.h" > > ------------------------------------------------------------------------ > *From:* Yu QIN <qi...@po...> > *To:* swi...@li... > *Sent:* Monday, June 27, 2011 9:59 AM > *Subject:* [Swig-user] [SWIG&JAVA] problem of repertory > > > Dear all, > There is a problem of repertory, I would like to ask you if you have some > solution > > I would like to convert this simple programm : > ////////////////zoo.h////////////////////// > class Zoo{ > int n; > char animals[10][50]; > public: > Zoo(); > void shut_up(char *animal); > void display(); > virtual ~Zoo(); > }; > /////////////////////////////////////////////// > > I have my file .i > > //////////Zoo.i/////////////////// > %module zoo > > %{ > #include "zoo.h" > %} > > %include "zoo.h" > ///////////////////////////////// > > > My problem is, the file "zoo.h" is NOT in the same repertory "zoo.i" and the > return error is > "Enable to find 'zoo.h' ". > > I know that I can put the files zoo.h and zoo.i in the same repertory, but > after than I have to convert a great project with thounds files .h (the > files .h cannot be in the same repertory), so I have to know how to convert > with the file .h in a different repertory. > > Thanks a lot > > > > Yu QIN > > > -- > View this message in context: > http://old.nabble.com/-SWIG-JAVA--problem-of-repertory-tp31935233p31935233.html > Sent from the swig-user mailing list archive at Nabble.com > <http://Nabble.com>. > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Swig-user mailing list > Swi...@li... <mailto:Swi...@li...> > https://lists.sourceforge.net/lists/listinfo/swig-user > > > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > > > > _______________________________________________ > Swig-user mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-user |