Please download and install PETSc 2.3.1 (just released). Regardless of whether you run with --with-clanguage=c++ or not, what you want to do SHOULD work! If the problem persists with 2.3.1 please send configure.log make_log*** and the output from linking your example to petsc-maint@mcs.anl.gov so we can determine what has gone wrong.
Ewerything has gone smooth. Thank you, mister. tom ######################################################## # tomjan@jay.au.poznan.pl # # jay.au.poznan.pl/~tomjan/ # ########################################################