On Sun, 20 Oct 2013, Santiago Alonso Pérez Rubiano wrote:

Hi, I'm trying to compile libmesh with PGI using the instructions outlined
in http://libmesh.sourceforge.net/installation.php but I'm getting the
following error:

"./include/libmesh/libmesh_augment_std_namespace.h", line 59: error:
function
         "std::abs(double)" conflicts with using-declaration of function
         "abs(double)"
   inline double abs(double a)

Does anyone has a clue of how to solve this?

Well, the code on those lines is actually invalid C++; it appears to
be a workaround for some old PGI compiler that didn't correctly define
std::abs(double).  You can probably work around the problem by just
deleting that function definition from
include/base/libmesh_augment_std_namespace.h

Assuming that works, would you let us know exactly what version of PGI
you're using?  That way we can make the #ifdef there more specific and
come up with a permanent fix.

Thanks,
---
Roy
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to