Hi Adam,

On Sun, May 10, 2009 17:47, Adam C Powell IV wrote:
> The slepc shared lib needs to be linked with -lparpack .  Without that
> link, building against it results in:
>
> /usr/lib/slepc/linux-gnu-c-opt/lib/libslepc.so: undefined reference to
> `pdneupd_'
> /usr/lib/slepc/linux-gnu-c-opt/lib/libslepc.so: undefined reference to
> `pdnaupd_'
> /usr/lib/slepc/linux-gnu-c-opt/lib/libslepc.so: undefined reference to
> `pdsaupd_'
> /usr/lib/slepc/linux-gnu-c-opt/lib/libslepc.so: undefined reference to
> `pdseupd_'

This can be fixed by adding

  OTHERSHAREDLIBS = ${SLEPC_EXTERNAL_LIB}

to conf/slepc_common_variables but you still have to add -lpetsc
-lpetscksp -lpetscdm ... to prevent undefined references to PETSc
functions. Should we also link the SLEPc shared library against the PETSc
libraries? We can do this by using

  OTHERSHAREDLIBS = ${SLEPC_EXTERNAL_LIB} ${PETSC_KSP_LIB}

How does that sound?

Best regards,

Johannes





-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to