<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi All,<br><div><br></div><div>Comping PETSc with ``--with-clanguage=c"  works fine. But I could not compile PETSc with "--with-clanguage=c++" since the flag "PETSC_HAVE_COMPLEX" was wrongly set on by this option.</div><div><br></div><div><div><i>/Users/kongf/projects/petsc/src/sys/objects/pinit.c:913:21: error: expected parameter declarator</i></div><div><i>    PetscComplex ic(0.0,1.0);</i></div><div><i>                    ^</i></div><div><i>/Users/kongf/projects/petsc/src/sys/objects/pinit.c:913:21: error: expected ')'</i></div><div><i>/Users/kongf/projects/petsc/src/sys/objects/pinit.c:913:20: note: to match this '('</i></div><div><i>    PetscComplex ic(0.0,1.0);</i></div><div><i>                   ^</i></div><div><i>/Users/kongf/projects/petsc/src/sys/objects/pinit.c:914:13: error: assigning to 'PetscComplex' (aka '_Complex double') from incompatible type 'PetscComplex ()' (aka '_Complex double ()')</i></div><div><i>    PETSC_i = ic;</i></div><div><i>            ^ ~~</i></div><div><i>3 errors generated.</i></div><div><i>make[2]: *** [arch-linux2-c-opt-memory/obj/sys/objects/pinit.o] Error 1</i></div><div><i>make[2]: *** Waiting for unfinished jobs....</i></div><div><i>make[2]: Leaving directory `/Users/kongf/projects/petsc'</i></div><div><i>make[1]: *** [gnumake] Error 2</i></div><div><i>make[1]: Leaving directory `/Users/kongf/projects/petsc'</i></div><div><i>**************************ERROR*************************************</i></div><div><i>  Error during compile, check arch-linux2-c-opt-memory/lib/petsc/conf/make.log</i></div><div><i>  Send it and arch-linux2-c-opt-memory/lib/petsc/conf/configure.log to <a href="mailto:petsc-maint@mcs.anl.gov">petsc-maint@mcs.anl.gov</a></i></div><div><i>********************************************************************</i></div></div><div><i><br></i></div><div>The make and configure logs are attached.</div><div><br></div><div>Fande,</div></div></div></div></div></div></div></div>