On Mar 17, 2014, at 1:51 PM, John Peterson <jwpeter...@gmail.com> wrote:

> 
> 
> 
> On Mon, Mar 17, 2014 at 11:11 AM, Boyce Griffith <griff...@cims.nyu.edu> 
> wrote:
> I was wondering if I could get some information about how an installed build 
> of libMesh expects to interact with the bundled libraries --- and 
> specifically with NetCDF.  Is -lmesh_METHOD meant also to provide all of the 
> archives for the contrib libraries, or are there some special cases?
> 
> The reason that I ask is that I regularly use ExodusII for I/O, and on most 
> systems that I use, it seems like I do not need to include an explicit link 
> to libnetcdf.  Specifically, -lmesh_METHOD does the trick.  (This is also 
> what is suggested by 'libmesh-config --libs'.)  However, when NetCDF is 
> enabled, libnetcdf always appears to be installed along with the libMesh 
> library archive, and on at least one system, I recently determined that I 
> need to include -lnetcdf as a linker flag to avoid undefined symbols.
> 
> 
> Hmm... well it appears that netcdf is included as one of the dependency libs 
> in libmesh_METHOD.la file, 
> 
> dependency_libs=' 
> /Users/username/projects/libmesh_git/install/lib/libnetcdf.la ...'
> 
> so if you use libtool to link I think you get netcdf.

FWIW, I never use libtool to link, and still get netcdf in most cases. Maybe 
libtool is being invoked behind the scenes on some systems?

-- Boyce

> On my system, netcdf does *not* appear to be included in the output of 
> 'libmesh-config --libs' so this might be a bug for people that are not using 
> libtool and are instead relying on the output of libmesh-config --libs to do 
> their linking.
> 
> Ben, any comments on this?
> 
> -- 
> John

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to