[petsc-dev] Example src/snes/tutorials/examples/ex15.c
Jed Brown
jedbrown at mcs.anl.gov
Mon Apr 29 12:05:47 CDT 2013
Travis Austin <austin at txcorp.com> writes:
> Hi,
>
> I've been trying to build/link src/snes/tutorials/examples/ex15.c for
src/snes/examples/tutorials/ex15.c
> the case that I have defined 'clanguage' to be C++ on the configure
> line. I get the following error:
>
> Undefined symbols for architecture x86_64:
> "SNESPicardComputeFunction(_p_SNES*, _p_Vec*, _p_Vec*, void*)",
> referenced from:
> _main in ex15.o "SNESPicardComputeJacobian(_p_SNES*, _p_Vec*,
> _p_Mat**, _p_Mat**, MatStructure*, void*)", referenced from:
> _main in ex15.o ld: symbol(s) not found for architecture x86_64
> collect2: ld returned 1 exit status make: [ex15] Error 1 (ignored)
> /bin/rm -f ex15.o
Thanks for the report. The actual problem here is that we're not
defining this interface in a header because we _don't_ want it to be
used. The right fix is to clean up the implementation so that
DMDASNESSetPicardLocal is all the user needs to call.
More information about the petsc-dev
mailing list