Page 1 of 1

Compilation problem

Posted: Thu Sep 10, 2009 11:25 am
by jpjodoin
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

RE: Compilation problem

Posted: Thu Sep 10, 2009 12:12 pm
by jpjodoin
I now get similar problem when compiling SimTkSimMath... this double with double being assigned to double*.

Where can I find a simtklapack that will work with each project ?

Thanks,

Jean-Philippe

RE: Compilation problem

Posted: Thu Nov 05, 2009 2:47 pm
by etom
I just had the same problem, and I fixed it by downloading the new, separate SimTKLapack.h file available in the lapack project.

It's at the bottom of the list, but here's the direct link:
https://simtk.org/frs/download.php?file_id=852

Where did you get the pthread.h file from?

RE: Compilation problem

Posted: Fri Nov 06, 2009 6:00 am
by jpjodoin
Hi Tom, for the pthread file (at least for windows), you can get it at: ftp://sourceware.org/pub/pthreads-win32/, download an run "pthread-w32-v-v-v-release.exe"

This will extract all the pthread include and lib you might need.

Jean-Philippe