Compilation problem
Posted: Thu Sep 10, 2009 11:25 am
Hi there, I'm currently trying to compile SimTkCommon under Vista x64 using a win32 project generated with Cmake. I have use the Lapack Win32 Intel generic binary to compile and pThread from the last release. I have a compilation error because of the constness of two parameter in "TemplatizedLapack.h". In this file, the ipiv parameter from the cgetri_ and the zgetri_ function is a const int [] while the method it calls in simtklapack.h is a int *. I get a compilation error:
D:\simtk svn\SimTKCommon\trunk\include\SimTKcommon/TemplatizedLapack.h(168) : error C2664: 'cgetri_' : cannot convert parameter 4 from 'const int []' to 'int *'
7> Conversion loses qualifiers
I have been able to sucessfully compile by adding the constness in simtklapack.h but I was wondering if the parameter should be const or not ? Which file is right ?
Thanks,
Jean-Philippe
D:\simtk svn\SimTKCommon\trunk\include\SimTKcommon/TemplatizedLapack.h(168) : error C2664: 'cgetri_' : cannot convert parameter 4 from 'const int []' to 'int *'
7> Conversion loses qualifiers
I have been able to sucessfully compile by adding the constness in simtklapack.h but I was wondering if the parameter should be const or not ? Which file is right ?
Thanks,
Jean-Philippe