On Mon, 4 Apr 2016, Salazar De Troya, Miguel wrote:

CMakeFiles/vector_cmake.dir/vector_fe_ex1.C.o: In function 
`libMesh::ReferenceCounter::increment_constructor_count(std::string const&)':

/g/g92/miguel/code/libmesh_2D/include/libmesh/reference_counter.h:166: 
undefined reference to `libMesh::ReferenceCounter::_counts’

which I don’t understand because Reference::_counts is defined in 
reference_counter.h.

I know you guys don’t use CMake, but I would really appreciate any
tip here.  I think that it is not finding the debug version of the
library? Could this be the issue?

That definitely looks like the issue.  _counts is declared if and only
if DEBUG is defined.  If you define DEBUG when building your
application then you need to be linking against a dbg-mode libMesh
build too.
---
Roy
------------------------------------------------------------------------------
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to