On Tue, 10 May 2011, Thomas Witkowski wrote: > I`ve compiled PETSc with the Intel c++ compiler. I can compile the tutorials > and tests without any problems. But when I change from mpicc to mpicxx, I get > the following error:
You mean changing from 'mpicc' to 'mpicxx' in your makefile - without rebuilding PETSc? Generally we recommend building PETSc with the language you plan to use with your application. i.e in this case '--with-clanguage=cxx' Here icc and icpc behave differently wrt _intel_fast_memcpy/_intel_fast_memset [and PETSc tries to use these rotines via petsc includes] - hence you are getting these errrors. Satish > > /lustre/jhome7/zdvex/zdv531/local/petsc/dev_dbg/include/petscsys.h(1776): > error: identifier "_intel_fast_memcpy" is undefined > _intel_fast_memcpy((char*)(a),(char*)(b),n); > ^ > > /lustre/jhome7/zdvex/zdv531/local/petsc/dev_dbg/include/petscsys.h(1827): > error: identifier "_intel_fast_memset" is undefined > _intel_fast_memset((char*)a,0,n); > ^ > > compilation aborted for ex1.c (code 2) > > > Do you have an idea whats going wrong? I`ve added the configure.log, if it > helps anybody. > > Thomas
