On Wed, 25 May 2016, Paul T. Bauman wrote:

>> 1, How can I configure a debugging version of libmesh? It seems there is
>> not such an option when configure -h,  I added "--with-debugging=yes" to
>> the configure command as I did for PETSc, it seems that this can generate a
>> debug verion of libmesh, but I am not sure.
>
> Setting the environment variable (or on the configure line) METHOD=devel
> will turn on asserts and debugging flags, but will still have -O2.
> METHOD=dbg will use -O0 and some other debugging flags. I use METHOD=devel
> the vast majority of the time. Only occasionally do I need to use
> METHOD=dbg.

If you don't do anything at all, the default behavior is 
"METHODS='dbg devel opt'", which simultaneously builds versions of
libmesh with ridiculous levels of debugging enabled, sane levels of
debugging enabled, and no debugging enabled, respectively.

>> 2, It outputs an error when I install libmesh: "attempted static link with
>> libstdc++.so", how can I link this lib correctly?

We never add this library to the link line ourselves - it would be
redundant since we use C++ compilers to link.  We do pull in linker
options from other packages, like PETSc; you can examine configure
logs to see which is including that entry.

By the way - is the text in quotation marks an exact quotation, or a
paraphrase?  It looks like the latter, but paraphrasing compiler error
messages is never a good idea; Google doesn't work well that way.
---
Roy

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to