[Insight-users] Build error on SunOS with CSwig Tcl wrapping

William A. Hoffman billlist at nycap . rr . com
Fri, 10 Oct 2003 13:03:58 -0400


Actually, CSWIG defaults to generating wrappers for the compiler that it was
built with.  So, most likely you built CSWIG with a 2.95 gnu compiler.
You have two choices:

1. rebuild CSWIG with gcc 3.3
2. Set the environment variable GCCXML_COMPILER to the gcc3.3 compiler you are using.

-Bill


At 12:51 PM 10/10/2003, Brad King wrote:
>On Fri, 10 Oct 2003, Marc Traina wrote:
>> Linux and Windows builds are OK.
>> But the files generated by CSWIG on SunOS don't include the "std::"
>> prefix before each class of the std namespace as it is done in the linux
>> and Windows builds.
>> Error messages are generated by gcc3.3 each time "std::" is missing.
>
>CSWIG parses the ITK code with GCC-XML, which pretends to be the compiler
>that will be used to build the wrappers.  It is possible that it is
>choosing a different compiler that does not have the std namespace.
>
>What compilers are installed on the Sun machine?  Is there one that
>doesn't have std?
>
>-Brad
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk . org
>http://www . itk . org/mailman/listinfo/insight-users