|
Re[2]: %include: msg#00097programming.swig
Hello Marcelo, I've built the CVS version and for that example it works. But only if working directory is ./module. Otherwise it fails with: main.i:2: Unable to find 'PartA/main.i' I think it would be consistent if it would work too. And when it is implemented you could stop searching files relative to the working dir;-) Best regards, Kerim mailto:warkid@xxxxxxxxx Wednesday, November 12, 2003, 9:46:53 PM, you wrote: MM> David already added a patch for your case. MM> Try the CVS version instead. MM> Anyway, I have some similar structure in my case, MM> but I did solve the problem with a lot of explicit -I"dir" MM> and submakes, ie, changing to every subdirectory MM> as needed and always running swig 'locally'. MM> Marcelo MM> Kerim Borchaev wrote: >>Hello Scott, >> >>Tuesday, November 11, 2003, 8:57:02 PM, you wrote: >> >>[fun part skipped;-] >> >>SM> You're not a pervert. Just lazy. Maybe a different generation of >>programmer. >>SM> :-) :-) :-) >>It just happened that I needed to build swig module with working >>directory other than module's. And it just didn't work. >> >>And I had a thought to organize my module like this: >> >>/module >> /PartA >> main.i >> subsidiary0.i >> subsidiary1.i >> ... >> /PartB >> main.i >> subsidiary0.i >> subsidiary1.i >> main.i >> >>with /module/main.i: >>%include PartA/main.i >>%include PartB/main.i >> >>And each PartX/main.i: >>%include subsidiary0.i >>... >> >>And I can't see how to do it with current way of searching for includes! >> >>Best regards, >> Kerim mailto:warkid@xxxxxxxxx >> >> >>SM> -scooter >> >>SM> Kerim Borchaev wrote: >> >> >> >>>>I wonder why no-one proposed this feature before..? >>>>Anyone ever needed such a behaviour from SWIG? Or I'm just a pervert? >>>> >>>> >>>>Best regards, >>>> Kerim mailto:warkid@xxxxxxxxx >>>>Monday, November 10, 2003, 9:36:47 PM, you wrote: >>>> >>>>MM> Kerim Borchaev wrote: >>>> >>>> >>>> >>>> >>>>>>Hello David, >>>>>> >>>>>>Monday, November 10, 2003, 4:44:32 PM, you wrote: >>>>>> >>>>>>DB> Kerim Borchaev writes: >>>>>>DB> > Hello, >>>>>>DB> > >>>>>>DB> > Why doesn't %include search in same folder as the file it was >>>>>>used >>>>>>DB> > in? >>>>>>DB> > >>>>>> >>>>>>DB> No one has ever requested such a feature ;-). >>>>>>DB> Should SWIG behave in this way? >>>>>>Yes! ;-) >>>>>> >>>>>>DB> (Does the C preprocessor do this?) >>>>>>I think it is. Don't know what's in the standard but VC .NET 2003(that's >>>>>>something about 98% standard compliant;-) works this way. >>>>>> >>>>>> >>>>>> >>>>>> >>>>MM> gcc and intel icc compilers do the same, i.e., if you run >>>> >>>>MM> icc/gcc -c test/test.cc >>>> >>>>MM> then, the 'test/' directory is added to the include search path, but >>>>MM> if you do >>>> >>>>MM> swig -python -c++ test/test.i >>>> >>>>MM> then, swig doesn't look inside 'test/', unless of course you add the >>>>"-I >>>>MM> test/" >>>>MM> option. >>>> >>>>MM> So, Kerim, in the meantime, you can try to add the "-I <your directory" >>>>to >>>>MM> swig and that will work. >>>> >>>>MM> Marcelo >>>> >>>> >>>> >>>> >>>>>>Best regards, >>>>>>Kerim mailto:warkid@xxxxxxxxx >>>>>> >>>>>> >>>>>> >> >> >>_______________________________________________ >>Swig maillist - Swig@xxxxxxxxxxxxxxx >>http://mailman.cs.uchicago.edu/mailman/listinfo/swig >> >> _______________________________________________ Swig maillist - Swig@xxxxxxxxxxxxxxx http://mailman.cs.uchicago.edu/mailman/listinfo/swig |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | swig and mpatrol: 00097, abcollier |
|---|---|
| Next by Date: | Re[2]: Directors and passing args by value.: 00097, Kerim Borchaev |
| Previous by Thread: | Re[2]: %includei: 00097, David Beazley |
| Next by Thread: | Re[2]: %include: 00097, David Beazley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |