[Trilinos-Users] [Trilinos-Help] link err
Bill Hoffman
bill.hoffman at kitware.com
Sat Nov 14 12:29:04 MST 2009
James Willenbring wrote:
> I am forwarding this issue to a wider audience.
>
> I’m trying to compile an application against a Windows Visual Studio
> 2008 compile of Trilinos 10.0.2 and I’m seeing linker errors, see below.
> Has anyone seen this and know what’s up? This appears to be a build
> config problem with Trilinos.
>
>
>
>
>
> 1>epetra.lib(Epetra_CrsGraph.obj) : error LNK2019: unresolved external
> symbol __imp___wassert referenced in function "private: int __thiscall
> Epetra_CrsGraph::CopyAndPermuteCrsGraph(class Epetra_CrsGraph const
> &,int,int,int *,int *,class Epetra_OffsetIndex const *)"
> (?CopyAndPermuteCrsGraph at Epetra_CrsGraph@@AAEHABV1 at HHPAH1PBVEpetra_OffsetIndex@@@Z)
>
Are you using CMake to compile your application? This is most likely a
result of mis-matched MS runtime libraries. The MS compiler can not mix
debug and release and multi-threaded and non. You have to make sure
your application was built with the exact flags that Trilinos was built
with.
-Bill
More information about the Trilinos-Users
mailing list