On Tue, Oct 16, 2012 at 10:48 PM, Subramanya Gautam Sadasiva
<[email protected]> wrote:
> hi,
> I managed to build it after adding -fpermissive to libmesh_CXXFLAGS. Has
> anybody else had this issue? I am on ArchLinux with gcc version 4.7.1
> 20120721.
Looks like you are using petsc-dev? You may run into compilation
problems from time to time since libmesh is not always 100% compatible
with petsc-dev.
The issue seems to be that PCGetType and KSPGetType changed their
prototypes from:
PetscErrorCode PCGetType(PC pc,const PCType *type)
to
PetscErrorCode PCGetType(PC pc,PCType *type)
i.e. the second argument lost its const. Looks like they are
basically going back to the pre-3.0.0 versions of those functions, so
try the attached patch and let me know if it works without
-fpermissive.
--
John
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users