Library doesn't properly link at command 'make'

153 Views Asked by At

I am trying to use some open-source CFD code, and it uses PETSC and some other libraries, so I installed them. But when I try to compile program useing 'make', it seems like libraries are not properly linked with makefile

enter image description here

enter image description here

It seems like petsc isn't properly linked, but I can't know why...

1

There are 1 best solutions below

0
On

The problem is that PETSc depends on some more libraries (X11) than the CFD package counted on. It should have a proper configure that figures these out. However, you can get the link line you need using

cd PETSC_DIR; make getlinklibs

which you can then put in LIBFLAG.