From: Rob M. <Rob...@ig...> - 2010-04-06 20:33:41
|
Actually, I was mistaken, I wasn't just getting warnings about the redefinitions, I was getting errors which was causing the compile to file, thereby not create the .o file. I created copies of a whole slew of header files from my library and modified the files, as well as the appropriate includes, so that there's no longer a conflict and now it works. Even though this isn't the place to complain... Why doesn't Perl make sure that it keeps its defines in its own name space? :-) Rob Rob Marshall wrote: > Hi, > > I've been struggling with this for hours and I'm > hoping that someone here can help. I am trying to > use swig to create a Perl wrapper for a library > that I just wrapped in Python. I keep trying to > pair the .i file down but it reaches a point > where it just won't work at all without a couple > of the header files. > > What's happening is that the swig command works > fine, 'perl Makefile.PL' creates the Makefile, > but when I run "make"I get a bunch of warnings > about redefined types (things like U32, etc. > that are in one of the headers for the library > and in Perl's handy.h file), another warning > about 'items' being unused (this looks like > it's coming from a dXSARGS in the XS(SWIG_init) > function, and then make just dies with: > > make: *** [lib_wrap.o] Error 1 > > I added '-v' to the CCCMD in the Makefile so > that I could get some more output, but that > didn't help. I even cut/pasted the (rather > long because of include paths) 'cc' command > that pipes it's output to 'as' to build the > lib_wrap.o file thinking that perhaps that > was causing the problem, but that was able > to create the .o file just fine (no errors). > > For the life of me I can't figure out what is > causing the error. Any suggestions? > > Thanks, > > Rob > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Swig-user mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-user > |