[Insight-users] Compiler errors under Borland...

Bill Hoffman bill.hoffman at kitware.com
Wed Nov 7 11:45:52 EST 2001


Right now the only supported compilers are:

Visual Studio 6
SGI 7.3.X
gcc 2.9.5.x 
gcc 3.x
cygwin gcc

I gave a quick look at the Borland compiler, and saw the same errors.
Until ITK development settles down, we do not have plans to expand the list
of compilers.

However, if you want to try and compile with Borland, I can give some hints
on what to try.

The problem is that the Numerics code uses an autoconf configure script on unix machines to
determine features that the c++ compiler supports.  For windows, this has been hand 
configured for Visual Studio 6.   Feature wise, the compilers seem to be different enough
to break the code.

Here are the location of the files that are configured:

Insight/Code/Numerics/vxl/vcl
  vcl_config_headers.h.in
vcl_config_compiler.h.in  vcl_config_manual.h.in

Insight/Code/Numerics/vxl
 vxl_config.h.in

The cmakelist file does this:
IF(NOT UNIX)
  IF(WIN32)
    CONFIGURE_FILE(
        ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vxl_config.h
        ${ITK_BINARY_DIR}/Code/Numerics/vxl/vxl_config.h COPYONLY)
    CONFIGURE_FILE(
        ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vcl_config_compiler.h
        ${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl/vcl_config_compiler.h COPYONLY)
    CONFIGURE_FILE(
        ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vcl_config_headers.h
        ${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl/vcl_config_headers.h COPYONLY)
    CONFIGURE_FILE(
        ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vcl_config_manual.h
        ${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl/vcl_config_manual.h COPYONLY)
  ENDIF(WIN32)
ENDIF(NOT UNIX)


Creating borland versions of those .h files would be the way to go.
I tried running configure with cygwin and using the borland compiler as CXX, but
configure is hard coded to expect .o files and not .obj files, so it does not work
that well.



At 05:29 PM 11/7/2001 +0000, John Biddiscombe wrote:
>Greetings, I've just tried compiling ITK with Borland and got a number of errors. Mostly math errors, looks like unsupported innan isinf type functions. Before I spend days trying to track down fixes for everything, does anyone already know what to do?
>
>Thanks
>
>John B (Didn't check archive, sorry)
>
>d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx:
>Error E2048 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 27: Unknown preprocess
>or directive: 'warning'
>Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 33: Parameter 'x' is
> never used in function finite(double)
>Error E2451 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 65: Undefined symbol '
>_huge_dble'
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 116: Call to undefined
> function 'isnan' in function vnl_math_isinf(float)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 118: Call to undefined
> function 'isnan' in function vnl_math_isinf(double)
>Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 118: Parameter 'x' i
>s never used in function vnl_math_isinf(double)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 120: Call to undefined
> function 'isnan' in function vnl_math_isinf(long double)
>Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_math.cxx 120: Parameter 'x' i
>s never used in function vnl_math_isinf(long double)
>*** 5 errors in Compile ***
>d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_filewrite.cxx:
>d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_header.cxx:
>d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print.cxx:
>d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print2.cxx:
>d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_format.cxx:
>d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx:
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 18: Cal
>l to undefined function 'sprintf' in function vnl_matlab_print_scalar(int,char *
>,vnl_matlab_print_format)
>Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 19: P
>arameter 'v' is never used in function vnl_matlab_print_scalar(int,char *,vnl_ma
>tlab_print_format)
>Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 19: P
>arameter 'buf' is never used in function vnl_matlab_print_scalar(int,char *,vnl_
>matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 30: Cal
>l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char
> *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 32: Cal
>l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char
> *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 36: Cal
>l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char
> *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 38: Cal
>l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char
> *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 41: Cal
>l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char
> *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 44: Cal
>l to undefined function 'sprintf' in function vnl_matlab_print_scalar(float,char
> *,vnl_matlab_print_format)
>Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 48: P
>arameter 'buf' is never used in function vnl_matlab_print_scalar(float,char *,vn
>l_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 59: Cal
>l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha
>r *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 61: Cal
>l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha
>r *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 65: Cal
>l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha
>r *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 67: Cal
>l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha
>r *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 70: Cal
>l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha
>r *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 73: Cal
>l to undefined function 'sprintf' in function vnl_matlab_print_scalar(double,cha
>r *,vnl_matlab_print_format)
>Warning W8057 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 77: P
>arameter 'buf' is never used in function vnl_matlab_print_scalar(double,char *,v
>nl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 128: Ca
>ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp
>lex<double>,char *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 129: Ca
>ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp
>lex<double>,char *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 132: Ca
>ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp
>lex<double>,char *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 133: Ca
>ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp
>lex<double>,char *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 140: Ca
>ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp
>lex<double>,char *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 141: Ca
>ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp
>lex<double>,char *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 148: Ca
>ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp
>lex<double>,char *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 149: Ca
>ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp
>lex<double>,char *,vnl_matlab_print_format)
>Warning W8004 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 150:
>'sign' is assigned a value that is never used in function vnl_matlab_print_scala
>r(std::complex<double>,char *,vnl_matlab_print_format)
>Warning W8004 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 151:
>'conv' is assigned a value that is never used in function vnl_matlab_print_scala
>r(std::complex<double>,char *,vnl_matlab_print_format)
>Warning W8004 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 151:
>'precision' is assigned a value that is never used in function vnl_matlab_print_
>scalar(std::complex<double>,char *,vnl_matlab_print_format)
>Warning W8004 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 151:
>'width' is assigned a value that is never used in function vnl_matlab_print_scal
>ar(std::complex<double>,char *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 195: Ca
>ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp
>lex<float>,char *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 196: Ca
>ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp
>lex<float>,char *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 199: Ca
>ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp
>lex<float>,char *,vnl_matlab_print_format)
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 200: Ca
>ll to undefined function 'sprintf' in function vnl_matlab_print_scalar(std::comp
>lex<float>,char *,vnl_matlab_print_format)
>Error E2228 d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_print_scalar.cxx 200: To
>o many error or warning messages in function vnl_matlab_print_scalar(std::comple
>x<float>,char *,vnl_matlab_print_format)
>*** 26 errors in Compile ***
>d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_read.cxx:
>d:/Insight/Code/Numerics/vxl/vnl/vnl_matlab_write.cxx:
>d:/Insight/Code/Numerics/vxl/vnl/vnl_matops.cxx:
>d:/Insight/Code/Numerics/vxl/vnl/vnl_nonlinear_minimizer.cxx:
>d:/Insight/Code/Numerics/vxl/vnl/vnl_numeric_limits.cxx:
>d:/Insight/Code/Numerics/vxl/vnl/vnl_numeric_traits.cxx:
>d:/Insight/Code/Numerics/vxl/vnl/vnl_real_npolynomial.cxx:
>d:/Insight/Code/Numerics/vxl/vnl/vnl_real_polynomial.cxx:
>d:/Insight/Code/Numerics/vxl/vnl/vnl_rotation_matrix.cxx:
>d:/Insight/Code/Numerics/vxl/vnl/vnl_sample.cxx:
>Error E2268 d:/Insight/Code/Numerics/vxl/vnl/vnl_sample.cxx 34: Call to undefine
>d function 'time' in function vnl_sample_reseed()
>*** 1 errors in Compile ***
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-users




More information about the Insight-users mailing list