[petsc-users] How to link petsc?
Klaus Burkart
k_burkart at yahoo.com
Sun Oct 1 15:20:21 CDT 2017
I installed petsc and the tests were successful on Ubuntu 16.04
PETSC_DIR points to the install directory in my home directory and is in my .bashrc export PETSC_DIR=/home/klaus/petsc-3.7.6
Now I want to link it and use it with the standard linux compiler to use the functionality in my application but I encounter several issues leading to compiler errors when I try to compile my own application including petsc functionality.
I must use absolute path to petsc header files in my source code, Makefile entries to the install directors are not recognized. Even then, header files referenced in petsc.h are not found leading to the following error .. petsc-3.7.6/include/petsc.h:5:22: fatal error: petscbag.h: file or directory not found but the file is in the same directory. Adding the other header files also with the absolute path doesn't work, it's not going beyond petsc.h, the error remains
What's the correct setup to be able to compile applications including petsc functionality?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20171001/318203a7/attachment.html>
More information about the petsc-users
mailing list