Try compiling a PETSc example [with a petsc makefile] to see all the include and library options needed to compile.
In this case - looks like you are missing linking with blas/lapack Satish On Fri, 20 Apr 2012, Christian Staudt wrote: > Hi PETSc users, > > I am trying out PETSc with something very simple from the tutorials [3], > creating a vector. My source code: [1] > The compiler (via Eclipse CDT) fails with the output [2] - undefined symbols > "_dswap" "_dnrm2" etc.. in libpetsc.a > > I have no idea where to start looking for the error and would be thankful for > some hints. > > Chris > > [1] http://pastebin.com/eMdpAbHy > [2] http://pastebin.com/AB6UynTV > [3] > http://www.mcs.anl.gov/petsc/petsc-current/src/vec/vec/examples/tutorials/ex1.c.html > > > > >
