<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I am running PETSc 3.4 on windows 7 VS2008, using Intel Fortran.<br>
<br>
When I tried to build my code, during linking, it gives the error:<br>
<br>
1>PETSc_solvers.obj : error LNK2019: unresolved external symbol <b>DMSETFUNCTION</b>
referenced in function
PETSC_SOLVERS_mp_P_MATRIX_SOLV_PETSC_MULTIGRID<br>
1>PETSc_solvers.obj : error LNK2019: unresolved external symbol <b>DMSETJACOBIAN</b>
referenced in function
PETSC_SOLVERS_mp_P_MATRIX_SOLV_PETSC_MULTIGRID<br>
<br>
My subroutine is :<br>
<br>
#include "finclude/petsc.h90"<br>
<br>
PetscErrorCode ierr<br>
<br>
...<br>
<br>
call DMSetFunction(da,ComputeRHS,ierr)<br>
<br>
...<br>
<br>
call DMSetJacobian(da,ComputeMatrix,ierr) <br>
<br>
...<br>
<br>
I also tried to use<br>
<br>
#include <finclude/petscsys.h><br>
#include <finclude/petscvec.h><br>
#include <finclude/petscmat.h><br>
#include <finclude/petscpc.h><br>
#include <finclude/petscksp.h><br>
#include <finclude/petscdmda.h><br>
#include <finclude/petscdmda.h90><br>
#include <finclude/petscdm.h><br>
<br>
instead of <br>
<br>
#include "finclude/petsc.h90"<br>
<br>
but it still can't work. I remember it used to work, maybe when I'm
using petsc-dev.<br>
<br>
Please help. Thank you!<br>
<pre class="moz-signature" cols="72">--
Yours sincerely,
TAY wee-beng</pre>
</body>
</html>