<div class="gmail_quote">On Wed, Apr 18, 2012 at 10:46, Christian Staudt <span dir="ltr">&lt;<a href="mailto:christian.staudt@ira.uka.de">christian.staudt@ira.uka.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>to the includes for my Eclipse project, which fixes the error that petscconf.h was not found.</div><div><br></div><div>Now the following error appears:</div><div><br></div><div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Monaco">
Building target: PETScTest2</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Monaco">Invoking: MacOS X C++ Linker</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Monaco">
g++ -L/usr/local/petsc/arch-darwin-c-debug/lib/ -o &quot;PETScTest2&quot;  ./src/PETScTest2.o   -l/usr/local/petsc/arch-darwin-c-debug/lib/libpetsc.a</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Monaco">
ld: library not found for -l/usr/local/petsc/arch-darwin-c-debug/lib/libpetsc.a</div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Monaco">collect2: ld returned 1 exit status</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 11px/normal Monaco">make: *** [PETScTest2] Error 1</div></div><div><br></div><div>libpetsc.a definitely exists at this location.  Is my PETSc installation broken?</div>
</blockquote></div><br><div>This is not the right option with which to link a library, you can do it this way.</div><div><br></div><div>-L/usr/local/petsc/arch-darwin-c-debug/lib/ -lpetsc</div>