[Insight-users] Compiling error C2059 in itkNumerics
Karthik Krishnan
Karthik.Krishnan at kitware.com
Thu Feb 9 14:04:04 EST 2006
This was fixed in CVS:
http://www.itk.org/cgi-bin/viewcvs.cgi/Utilities/vxl/v3p/netlib/netlib.h?rev=1.4&root=Insight&view=log
Just replace your copy of the file with this one .
Thanks
-karthik
PS:
The ITK-2-4 release was also patched with this fix. If you don't want to
stay on CVS and use the last release, please use the one where patches
have been applied. To access the last release via CVS:
cvs -d:pserver:karthik at public.kitware.com:/cvsroot/Insight co -r
ITK-2-4-1 Insight
ITK-2-4-0 is the release version.. patches (when bugs are found) are
added to ITK-2-4-1.
Floca, Ralf wrote:
>Hallo
>
>I try to compile itk 2.4.0 with MS VS C++ 2005. Everything works fine.
>Only the compiling of itkNumerics aborts because of error C2059.
>
>The compiler output:
>
>------ Rebuild All started: Project: ITKNumerics, Configuration: Debug
>Win32 ------
>Deleting intermediate and output files for project 'ITKNumerics',
>configuration 'Debug|Win32'
>Building Custom Rule ITKNumerics.vcproj.cmake
>-- Configuring done
>-- Generating done
>-- Build files have been written to:
>C:/DATEN/Development/Insight/ITK-Bin
>Compiling...
>lbfgsb.c
>C:\DATEN\Development\Insight\ITK\Utilities\vxl\v3p\netlib\netlib.h(25) :
>error C2059: syntax error : 'type'
>
>Part of netlib.h provoking the error:
>
>#include <vxl_config.h>
>#if VXL_C_MATH_HAS_SQRTF
>float sqrtf(float); <--- Line 25
>#else
># define sqrtf(f) ((float)sqrt((double)(f)))
>#endif
>
>
>My CMake options where set for compiling VS C++ 2005. Using the same
>installation of itk, it is no problem to compile it with VS C++ 7.1.
>
>Could anybody give me a clue or hint, what the problem could be and how
>to get itk completely compiled with VS C++ 2005.
>
>Thank you very much.
>
>Ralf o Floca
>
>---------------------------------------------------------------------
>Ralf Floca
>University of Heidelberg
>Institute for Medical Biometry and Informatics
>Department of Medical Informatics
>Im Neuenheimer Feld 400
>D-69120 Heidelberg, Germany Tel. : +49 (0)6221 56-7484
>http://www.med.uni-heidelberg.de/mi Fax : -4997
>ralf.floca at med.uni-heidelberg.de Sekr.: -7483
>---------------------------------------------------------------------
>
>
>_______________________________________________
>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