[petsc-users] calling PETSc from C++
Francis Poulin
fpoulin at uwaterloo.ca
Mon Mar 12 19:35:46 CDT 2012
Hello,
Thank for the help. When I insert these lines at the end of the mail file and I try make clean I get
Francis-Poulins-MacBook-Pro:Ocean3D fpoulin$ make clean
/Users/fpoulin/soft/petsc-3.2-p6/conf/rules:137: *** target file `clean' has both : and :: entries. Stop.
I see that in the rules file there's a line with
clean::
That looks strange but I presume it's suppose to be there.
Any ideas how I should do?
Thanks,
Francis
On 2012-03-12, at 5:55 PM, Satish Balay wrote:
> On Mon, 12 Mar 2012, Matthew Knepley wrote:
>
>>
>> The makefiles are simple. Here is building an executable:
>
> you need some addtional stuf..
>
> include ${PETSC_DIR}/conf/variables
> include ${PETSC_DIR}/conf/rules
>
>> myProg: myProg.o otherSource.o anotherSource.o
>> ${CLINKER} -o myProg ${PETSC_TS_LIB}
>
>
> attaching a sample makefile. Also its best to build petsc with option
> --with-clanguage=cxx [if using from c++].
>
> Satish
> <makefile.txt>
More information about the petsc-users
mailing list