[petsc-dev] Missing typedef ?
Franck Houssen
franck.houssen at inria.fr
Sun Jan 28 10:50:04 CST 2018
Hello,
In petscmat.h, the line "#define MatSolverPackage char*" shouldn't it be replaced with " typedef char* MatSolverPackage" ? (like it's done for MatType and others)
When trying to use MatSolverPackage from a cpp file where "petsc.h" and "petscmat.h" have been included I get this error : error: ‘ MatSolverPackage ’ does not name a type; did you mean ‘ MatSolverType ’? .
Looks like this error does occur, or not, depending on compiler / OS : this is OK with debian but not with ubuntu-trusty (line 2191 here https://travis-ci.org/fghoussen/geneo4PETSc/jobs/334384582 ).
I would say the compile error can occur, or not, according to what -fvisibility defaults to.
Not sure of this...
Franck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20180128/eee0ad21/attachment.html>
More information about the petsc-dev
mailing list