[petsc-users] Error during building - ex1f.obj : error LNK2001: unresolved external symbol KSPMONITORLG

TAY wee-beng zonexo at gmail.com
Thu Oct 18 08:05:52 CDT 2012


Hi,

I compiled and build PETSc dev and there's no error. Platform is vs2005 
+ ifort + cygwin.

However, when I tried to build and run ex1f, I got the error:

$ make ex1f
/cygdrive/d/wtay/Lib/petsc-3.3-dev_win32_vs2005/bin/win32fe/win32fe 
ifort -c  -MT -Z7 -fpp 
-I/cygdrive/d/wtay/Lib/petsc-3.3-dev_win32_vs2005/include -I/cygdriv
e/d/wtay/Lib/petsc-3.3-dev_win32_vs2005/include 
-I/cygdrive/d/wtay/Lib/MPICH2/include    -o ex1f.o ex1f.F
/cygdrive/d/wtay/Lib/petsc-3.3-dev_win32_vs2005/bin/win32fe/win32fe 
ifort -MT -Z7 -fpp  -o ex1f ex1f.o 
-L/cygdrive/d/wtay/Lib/petsc-3.3-dev_win32_vs2005/lib  -
lpetsc -lflapack -lfblas /cygdrive/d/wtay/Lib/MPICH2/lib/fmpich2.lib 
/cygdrive/d/wtay/Lib/MPICH2/lib/fmpich2g.lib 
/cygdrive/d/wtay/Lib/MPICH2/lib/mpi.lib Gdi32.
lib User32.lib Advapi32.lib Kernel32.lib Ws2_32.lib
ex1f.obj : error LNK2001: unresolved external symbol KSPMONITORLG
D:\wtay\DOWNLO~1\Codes\PETSC-~1\src\ksp\ksp\examples\TUTORI~1\ex1f.exe : 
fatal error LNK1120: 1 unresolved externals
makefile:26: recipe for target `ex1f' failed
make: [ex1f] Error 96 (ignored)
/usr/bin/rm -f ex1f.o

I can't find the use of KSPMONITORLG so I don't understand where the 
error is coming from.

Thanks for the help.

-- 
Yours sincerely,

TAY wee-beng



More information about the petsc-users mailing list