[Insight-users] Compiling Errors (vnl_matrix_fixed_ref.h , invalid conversion from 'float*' to 'int')

Thomas Albrecht Thomas.Albrecht at unibas.ch
Tue May 23 05:45:02 EDT 2006


Hi, when trying to compile ITK 2.6.0 on Linux Fedora Core 5, Pentium 4, 
gcc 4.1.0, I get the following error message:
I hope somebody can help me.

    Building object file Templates/vnl_det+long_double-.o...
    Building object file Templates/vnl_matrix_fixed_ref+float.3.3-.o...
    /local/tom/Insight/Utilities/vxl/core/vnl/vnl_matrix_fixed_ref.h: In
    member function 'const vnl_matrix_fixed_ref<T, num_rows, num_cols>&
    vnl_matrix_fixed_ref<T, num_rows, num_cols>::operator/=(T) const
    [with T = float, unsigned int num_rows = 3u, unsigned int num_cols =
    3u]':
    /local/tom/Insight/Utilities/vxl/core/vnl/Templates/vnl_matrix_fixed_ref+float.3.3-.cxx:2:  
    instantiated from here
    /local/tom/Insight/Utilities/vxl/core/vnl/vnl_matrix_fixed_ref.h:485:
    error: invalid conversion from 'float*' to 'int'
    /local/tom/Insight/Utilities/vxl/core/vnl/vnl_matrix_fixed_ref.h:485:
    warning: converting to 'int' from 'float'
    /usr/include/stdlib.h:801: error: too many arguments to function
    'div_t div(int, int)'
    /local/tom/Insight/Utilities/vxl/core/vnl/vnl_matrix_fixed_ref.h:485:
    error: at this point in file
    make[9]: *** [Templates/vnl_matrix_fixed_ref+float.3.3-.o] Error 1
    make[8]: *** [default_target] Error 2
    make[7]: *** [default_target_vnl] Error 2
    make[6]: *** [default_target] Error 2
    make[5]: *** [default_target_core] Error 2
    make[4]: *** [default_target] Error 2
    make[3]: *** [default_target_vxl] Error 2
    make[2]: *** [default_target] Error 2
    make[1]: *** [default_target_Utilities] Error 2
    make: *** [default_target] Error 2

    gcc -v
    Using built-in specs.
    Target: i386-redhat-linux
    Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
    --infodir=/usr/share/info --enable-shared --enable-threads=posix
    --enable-checking=release --with-system-zlib --enable-__cxa_atexit
    --disable-libunwind-exceptions --enable-libgcj-multifile
    --enable-languages=c,c++,objc,obj-c++,java,fortran,ada
    --enable-java-awt=gtk --disable-dssi
    --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
    --with-cpu=generic --host=i386-redhat-linux
    Thread model: posix
    gcc version 4.1.0 20060304 (Red Hat 4.1.0-3)




More information about the Insight-users mailing list