[Insight-users] CableSwig VS8 error

Michael Bell michael.bell at acm.org
Mon Jun 19 14:32:20 EDT 2006


ITK developers,

When attempting to build CableSwig under VS8, I get many errors, the
first of which is:
..\..\..\GCC\libiberty\strerror.c(474) : error C2373: '__sys_errlist'
: redefinition; different type modifiers
        C:\Program Files\Microsoft Visual Studio
8\VC\include\stdlib.h(281) : see declaration of '__sys_errlist'


#ifndef HAVE_SYS_ERRLIST
static int sys_nerr;
static const char **sys_errlist;
#else
...

If I define HAVE_SYS_ERRLIST in strerror.c, this problem and many
others disappear.

Perhaps the test for this variable is failing in
GCC/config_cmake/CMakeLists.txt:
    253 PERFORM_C_TEST(HAVE_SYS_ERRLIST "checking for variable
sys_errlist" DIRECT)
    254 PERFORM_C_TEST(HAVE_SYS_ERRLIST_IN_STDLIB_H
    255   "checking for sys_errlist in stdlib.h" DIRECT)
    256 IF(NOT HAVE_SYS_ERRLIST)
    257   IF(HAVE_SYS_ERRLIST_IN_STDLIB_H)
    258     SET(HAVE_SYS_ERRLIST 1 CACHE INTERNAL "Have sys_errlist in
stdlib.h.")
    259   ENDIF(HAVE_SYS_ERRLIST_IN_STDLIB_H)
    260 ENDIF(NOT HAVE_SYS_ERRLIST)


The cause might also be a configuration problem of my own.

thanks,
michael


-- 
michael.bell at acm.org


More information about the Insight-users mailing list