[Insight-developers] SGI 7.4.2 compilers with Wrapping

Hans Johnson hans-johnson at uiowa.edu
Thu Jul 28 16:43:50 EDT 2005


Wrapping Guru's,

I'm trying to get wrapping working on SGI 7.4.2 compilers with wrapping.
Here is the error when I try to build:

/scratch/hjohnson/src/brains2/iplFreeware/SGI/FAST/Insight/Wrapping/CSwig/VX
LNumerics: building default_target
Building wrap_vnl_vector.idx from
/scratch/hjohnson/src/brains2/iplFreeware/SGI/FAST/Insight/Wrapping/CSwig/VX
LNumerics/wrap_vnl_vector.idx...
Building wrap_vnl_c_vector.xml from
/scratch/hjohnson/src/brains2/iplFreeware/SGI/FAST/Insight/Wrapping/CSwig/VX
LNumerics/wrap_vnl_c_vector.xml...
In file included from
/scratch/hjohnson/src/brains2/iplFreeware/unpackdir/Insight/Utilities/vxl/vc
l/iso/vcl_cmath.h:6,
                 from
/scratch/hjohnson/src/brains2/iplFreeware/unpackdir/Insight/Utilities/vxl/vc
l/sgi/vcl_cmath.h:152,
                 from
/scratch/hjohnson/src/brains2/iplFreeware/unpackdir/Insight/Utilities/vxl/vc
l/vcl_cmath.h:47,
                 from
/scratch/hjohnson/src/brains2/iplFreeware/unpackdir/Insight/Utilities/vxl/co
re/vnl/vnl_c_vector.h:26,
                 from
/scratch/hjohnson/src/brains2/iplFreeware/unpackdir/Insight/Wrapping/CSwig/V
XLNumerics/wrap_vnl_c_vector.cxx:18:
/usr/include/CC/cmath:4:2: #error This header requires the
-LANG:libc_in_namespace_std option
gmake[5]: *** 
[/scratch/hjohnson/src/brains2/iplFreeware/SGI/FAST/Insight/Wrapping/CSwig/V
XLNumerics/wrap_vnl_c_vector.xml] Error 1
gmake[4]: *** [default_target] Error 2
gmake[3]: *** [default_target_VXLNumerics] Error 2
gmake[2]: *** [default_target] Error 2
gmake[1]: *** [default_target_Wrapping_CSwig] Error 2
gmake: *** [default_target] Error 2


================

The confusing parts are that -LANG:libc_in_namespace_std  is implicitly
turned on, and I've also tried explicitly setting this flag in the compiler
flags of cmake.

================
[hjohnson at bleuler Insight]$ cat /usr/include/CC/cmath
#ifndef __CMATH__
#define __CMATH__
#ifndef _LIBC_IN_NAMESPACE_STD_
#error This header requires the -LANG:libc_in_namespace_std option
#endif /* _LIBC_IN_NAMESPACE_STD_ */
#include <internal/math_core.h>
#endif /* __CMATH__ */

// Local Variables:
// mode:C++
// End:
================

Is there any hope on making this work?

Thanks,
Hans




More information about the Insight-developers mailing list