logo       

vector problem with solaris compiler: msg#00156

programming.swig

Subject: vector problem with solaris compiler

Hello. I'm extremely new to this and I need a little help.

This is my example.cc:

extern "C" int func() {
return 100;
}

Interface file is extremely simple:

%module example
%{
//#include <vector>
%}

//%include "std_vector.i"

extern int func1();

If I uncomment either line, I get an error compiling wrap file:

$ CC -g -G -I$APDIR/include/perl -o example.so example.cc example_wrap.cxx
example.cc:
example_wrap.cxx:
"/opt/SUNWspro/WS6U2/include/CC/Cstd/rw/rwdispatch.h", line 63: Error:
_RW_is_integral_type(char) already had a body defined.
"/opt/SUNWspro/WS6U2/include/CC/Cstd/rw/rwdispatch.h", line 121: Error:
Multiple declaration for _RWdispatch<char>.
"/opt/SUNWspro/WS6U2/include/CC/Cstd/./limits", line 925: Error: Multiple
declaration for std::numeric_limits<char>.
3 Error(s) detected.

It compiles fine with g++ but I have a lot of existing code and converting it
to g++ would be inconvinient to say the least.

I'd appreciate any help. Thank you.


_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise