On Sun, 22 Jun 2014, Onur Solmaz wrote: > `libMesh::ReferenceCounter::increment_destructor_count(std::string const&)': > /usr/local/include/libmesh/reference_counter.h:179: undefined reference > to `libMesh::ReferenceCounter::_counts' > > The error does not show up when I use -lmesh_dbg. > Is this a bug, or am I doing something wrong?
It looks like you're trying to use libMesh inconsistently. If you include libMesh headers while the DEBUG symbol is defined, then we make some ABI changes, and you need to link against a version of the that was built with -DDEBUG as well. Contrariwise, if you want to link against libmesh_opt then you'll need to make sure your libmesh-using objects were compiled without DEBUG defined. On the other hand, I'm not sure if this counts as "doing something wrong". It's not unreasonable to want headers to define a consistent ABI regardless of DEBUG/NDEBUG definitions, to make it easier to debug your own code without worrying about changing the underlying linkage. I don't have time to fix or test this myself but I'd be happy to look at a patch. --- Roy ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
