[petsc-users] missing binary operator before token
kiran hegde
kiranhegde75 at gmail.com
Sat Aug 2 10:21:59 CDT 2025
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 at 3.23.4 version with gcc at 15.1.0
--
Regards,
Kiran Hegde
Mobile:+91 9972600235
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250802/21975a36/attachment.html>
More information about the petsc-users
mailing list