<div dir="ltr"><div>Hi ,</div><div><br></div><div>I am compiling fortran code using petsc include & lib, but getting below error:</div><div><br></div><div>298 | #if PetscHasAttribute(format) && !defined(PETSC_SKIP_ATTRIBUTE_FORMAT)<br>Error: missing binary operator before token '('<br>/home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:330:0:<br><br>  330 | #if PetscHasAttribute(__cold__)<br>Error: missing binary operator before token '('<br>/home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:332:0:<br><br>  332 | #elif PetscHasAttribute(cold) /* some implementations (old gcc) use no underscores */<br>Error: missing binary operator before token '('<br>/home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:355:0:<br></div><div><br></div><div>298 | #if PetscHasAttribute(format) && !defined(PETSC_SKIP_ATTRIBUTE_FORMAT)<br>Error: missing binary operator before token '('<br>/home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:330:0:<br><br>  330 | #if PetscHasAttribute(__cold__)<br>Error: missing binary operator before token '('<br>/home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:332:0:<br><br>  332 | #elif PetscHasAttribute(cold) /* some implementations (old gcc) use no underscores */<br>Error: missing binary operator before token '('<br>/home/kiranhegde/MyLinuxApplications/Installations/petsc/include/petscmacros.h:355:0:<br></div><div><br></div><div>Same errors repeat for many lines and header files</div><div>I am using PETSC@3.23.4 version with gcc@15.1.0 </div><div><br></div><div><br></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards,<br><br>Kiran Hegde<br>Mobile:+91 9972600235<br></div></div></div>