On Sep 22, 2014, at 5:25 AM, 李震 <[email protected]> wrote:

> On the P185 of the manual
>  
> "and then the libraries, in my case:
> m, petsc, stdc++, mpichxx, mpich, lapack, blas, gfortran, dl, rt,gcc_s, 
> pthread …."

  No, this is not the exact list of libraries. The exact list of libraries is 
machine and configuration dependent. Run

   make getlinklibs

   for your machine. For example for me 

~/Src/petsc/src/ksp/ksp/examples/tutorials  
barry/feature-enhanced-binary-viewers $ make getlinklibs
-L/Users/barrysmith/Src/petsc/arch-basic/lib 
-L/Users/barrysmith/Src/petsc/arch-basic/lib 
-L/Users/barrysmith/Src/petsc/arch-basic/lib -lpetsc -llapack -lblas 
-L/opt/X11/lib -lX11 -lhwloc -lpthread -lssl -lcrypto 
-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/lib/darwin
 -lmpichf90 -lgfortran -L/usr/local/lib/gcc/x86_64-apple-darwin12.3.0/4.8.1 
-L/usr/local/lib -lgfortran -lgcc_ext.10.5 -lquadmath -lm -lclang_rt.osx 
-lmpichcxx -lc++ 
-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/lib/darwin
 -lclang_rt.osx -L/Users/barrysmith/Src/petsc/arch-basic/lib -ldl -lpmpich 
-lmpich -lopa -lmpl -lpthread -lSystem 
-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/lib/darwin
 
-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/lib/darwin
 -lclang_rt.osx -ldl



>  
> after the "pthread, .." line, the parameters is not complete, I think it is a 
> problem of compiling the PDF file.
>  
> 李震
>  
> 发件人: Barry Smith
> 发送时间: 2014-09-22 18:16
> 收件人: 李震
> 抄送: petsc-dev
> 主题: Re: [petsc-dev] build petsc in eclipse
>  
>    The users manual 
> http://www.mcs.anl.gov/petsc/petsc-current/docs/manual.pdf   on page 185 
> contains all the information we know about using Eclipse with PETSc.  I hope 
> this helps. If you figure out any additional information please send it to us 
> and we’ll add it to the documentation.
>  
>    Barry
>  
> On Sep 22, 2014, at 5:05 AM, 李震 <[email protected]> wrote:
>  
> > Dear Mr,
> > 
> >        I want to know the method that set up the PETSc in Eclipse. Can you 
> > give me some advice?
> > 
> > Sincerely yours,
> > Zhen Li
> > Dalina University of Technology
> > 

Reply via email to