<div dir="ltr"><div><div><div>Hello,<br></div> You may want to take a look at the attachment in this email..<br><br><a href="https://lists.mcs.anl.gov/mailman/htdig/petsc-users/2012-August/015026.html">https://lists.mcs.anl.gov/mailman/htdig/petsc-users/2012-August/015026.html</a><br>
<br></div>It is an example of using petsc from fortran. If you have PETSC_DIR and PETSC_ARCH defined as env variables...you can run the example.<br><br></div>If the make file generated by code blocks does some thing similar your code should work. See if you can get this simple example working on code block. <br>
<div><div><div><div><div><br></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 29, 2013 at 1:53 PM, Sonya Blade <span dir="ltr"><<a href="mailto:sonyablade2010@hotmail.com" target="_blank">sonyablade2010@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Are you using makefiles or somthing else to build your application?<br>
> We suggest using PETSc makefiles.<br>
><br>
> Satish<br>
<br>
I'm bit confused here, AFAIK makefiles are supposed to be used for compilation of<br>
Petsc source code not the intended application. Probably I'm wrong here.<br>
<br>
I've used gcc and gfortran in cygwin to compile the Petsc codes without MPI support.<br>
There is no error recorded at the error.log and all the examples works like charm in <br>
C language. So I think that there is no discrepancy during the compilation.<br>
<br>
But when I try to run the examples in gfortran (in Code Block editor) then compiler raises <br>
so many errors such as :<br>
<br>
Undefined reference to __getreent in function PetscInitialize()<br>
Undefined reference to __errno in funciton PetscSynchronizedFGets()<br>
<br>
etc...<br>
<br>
Do those errors gives any hints on what is going wrong? </blockquote></div><br><br clear="all"><br>-- <br>-----------------------------------------------------<br>Dharmendar Reddy Palle<br>
Graduate Student<br>Microelectronics Research center,<br>University of Texas at Austin,<br>10100 Burnet Road, Bldg. 160<br>MER 2.608F, TX 78758-4445<br>e-mail: <a href="mailto:dharmareddy84@gmail.com" target="_blank">dharmareddy84@gmail.com</a><br>
Phone: +1-512-350-9082<br>United States of America.<br>Homepage: <a href="https://webspace.utexas.edu/~dpr342" target="_blank">https://webspace.utexas.edu/~dpr342</a><br>
</div>