[Insight-users] compilation problem and solution

Luis Ibanez luis.ibanez at kitware.com
Wed Jul 14 12:01:12 EDT 2004


Hi Yannick,


There are no files with extension .c in

  /InsightToolkit-1.6.0/Utilities/vxl/core/vnl/Templates/

You are probably being a victim of a truncation of the
file name that results in the elimination of the two
last characters "xx" from the extension ".cxx"

Please verify that you are using a decent tar utility.

Note that the tar tool distributed by SUN is buggy and
does not conforms to the checksum standards of other
tar tools, including the gnu tar that was used for
creating the ITK tar.gz files.

For details please look at:
http://www.gnu.org/software/tar/manual/html_node/tar_127.html

It is ok for CMake to invoke the C compiler for files
with extension ".c". In your case, what happens is that
the filename has been mofidied during the process of
extracting the source files into your system.



Regards,



     Luis



------------------------

Yannick Allard wrote:

> Hi Everyone,
> 
> While compiling the ITK libraries (gcc 3.2, pentium arch, solaris2.8), for only 
> one file, cmake is calling the wrong compiler which give rise to undefined 
> symbols (in general, it wont find complex, cmath and other libs.)
> 
> the file is :
> 
> /InsightToolkit-
> 1.6.0/Utilities/vxl/core/vnl/Templates/vcl_vector+vnl_vector+vcl_complex+double-
> --.c
> 
> cmake generate the makefile and only that file is compiled with gcc instead of 
> g++
> 
> to see it, just turn the silent mode off for the compilation.
> 
> Yannick
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 





More information about the Insight-users mailing list