Hi ,

I am compiling fortran code using petsc include & lib, but getting
below error:

298 | #if PetscHasAttribute(format) && !defined(PETSC_SKIP_ATTRIBUTE_FORMAT)
Error: missing binary operator before token '('
/home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:330:0:

  330 | #if PetscHasAttribute(__cold__)
Error: missing binary operator before token '('
/home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:332:0:

  332 | #elif PetscHasAttribute(cold) /* some implementations (old gcc) use
no underscores */
Error: missing binary operator before token '('
/home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:355:0:

298 | #if PetscHasAttribute(format) && !defined(PETSC_SKIP_ATTRIBUTE_FORMAT)
Error: missing binary operator before token '('
/home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:330:0:

  330 | #if PetscHasAttribute(__cold__)
Error: missing binary operator before token '('
/home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:332:0:

  332 | #elif PetscHasAttribute(cold) /* some implementations (old gcc) use
no underscores */
Error: missing binary operator before token '('
/home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:355:0:

Same errors repeat for many lines and header files
I am using PETSC@3.23.4 version with gcc@15.1.0



-- 
Regards,

Kiran Hegde
Mobile:+91 9972600235

Reply via email to