[petsc-dev] How do you get C99 (_Pragma) configured?

Barry Smith bsmith at petsc.dev
Fri Oct 22 08:45:06 CDT 2021

  Looks like possibly a mixture of C compilers or different flags being used in different places in configure and make. Would need configure.log and make.log sent to petsc-maint

> On Oct 22, 2021, at 9:32 AM, Mark Adams <mfadams at lbl.gov> wrote:
> And I am using 
>     '--with-cc=gcc-11',
>     '--with-cxx=g++-11',
> but I am getting, using what Jed suggests:
> /Users/markadams/Codes/petsc2/include/petscsys.h:2873:29: error: '_Pragma' undeclared (first use in this function)
>  2873 | #define PetscPragmaOMP(arg) _Pragma("omp " PetscStringize(arg))
> On Fri, Oct 22, 2021 at 9:15 AM Mark Adams <mfadams at lbl.gov <mailto:mfadams at lbl.gov>> wrote:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20211022/1af1c22d/attachment.html>

More information about the petsc-dev mailing list