[Trilinos-Users] VS2008 build problems
Heroux, Michael A
maherou at sandia.gov
Thu Oct 22 11:47:08 MDT 2009
Please report back on your experience, progress and resolutions. We are just getting started with Windows and Visual Studio and would like to hear about user experiences.
On 10/21/09 9:47 PM, "-Ing. Chris Jackson" <chris.jackson at mayahtt.com> wrote:
I just faced some similar issues on win32. I see two possibilities:
1) There are actually three libraries associated with CLAPACK. These are lapack.lib, blas.lib, and libf2c.lib. They are located in different folders in the CLAPACK build path (e.g., BLAS/SRC/release/blas.lib). Make sure you link to all three libraries.
2) You may have "underscore name conflicts" (that's what I call them anyway, there's surely a more formal definition!). epetra.lib is looking for a symbol saxpy_. Go to BLAS/SRC/blas.dir/Release, and do a dumpbin (or nm if you have it on win64) on saxpy.obj. i.e., dumpbin -headers saxpy.obj You should see a line like COMDAT; sym= saxpy_. If instead it says sym= _saxpy_ (mine does), then you need to adjust some settings in your Trilinos cmake configuration. Go to F77 in the Trilinos cmake-gui, and modify F77_BLAS_MANGLE to get the name mangling straight (add an underscore I guess... _ ## name ## _ ... ?).
Hope this helps.
From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Ovtchinnikov, Serguei
Sent: October 21, 2009 8:08 PM
To: trilinos-users at software.sandia.gov
Subject: [Trilinos-Users] VS2008 build problems
I'm trying to build Trilinos with VS2008 on Windows Vista 64 using cmake-gui. CLAPACK seems to build fine - cmake-gui finds it when I try to configure Trilinos with Epetra. However, I get lots of errors while building Trilinos:
epetra.lib(Epetra_BLAS.obj) : error LNK2019: unresolved external symbol saxpy_ referenced in function "public: void __cdecl Epetra_BLAS::AXPY(int,float,float const *,float *,int,int)const
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Trilinos-Users