From: Joe C. <fre...@gm...> - 2014-05-30 11:29:42
|
On second thoughts, %ignore/%rename should not work because the errors happened when swig is compiled and therefore too early for %ignore to ignore that function. swig -python -c++ -I/usr/include/tesseract -I/usr/include/leptonica -I/usr/include/opencv2 -o tesseract_wrap.cpp tesseract.i allheaders_mini.h:44: Error: Syntax error in input(1). On Thu, May 29, 2014 at 11:17 PM, Vadim Zeitlin <vz...@ze...> wrote: > On Thu, 29 May 2014 09:08:57 -0600 Bob Hood <bh...@co...> wrote: > > BH> Unless a newer version does (I use v2.0.4), no, I don't believe SWIG > provides > BH> pattern-matching %ignore commands. > > Actually, yes, newer versions (since 2.0.10 I believe? Anyhow, just use > 3.0.1) do support using %(regex:...) in %rename, and hence %ignore, which > is just a special case of it. See > > http://www.swig.org/Doc3.0/SWIG.html#SWIG_advanced_renaming > > HTH, > VZ > > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Swig-user mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-user > > |