Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29283 Discussions

ifc compilation error with openmp option

ifc_query
Beginner
683 Views
hi there,

i included a openmp option to compile a fortran program and got the following errors.

>>
C$Id: test.f
Error 14 at (1:test.f) : invalid label field
>>

seems the compiler can not understand the comments. anyone know the reason and how to resolve it?

thanks in advance!

0 Kudos
2 Replies
TimP
Honored Contributor III
683 Views
-openmp requires fpp pre-processing, and lines of this form are considered to be required to be pre-processing directives. Perhaps lines such as yours, which don't match the patterns defined for pre-processing, should be passed through silently, but the '$' character is excluded by Fortran from the list of characters available for usual purposes.
0 Kudos
ifc_query
Beginner
683 Views
thanks. can you elaborate on how to slove this problem?
i saw some one suggested to upgrade cpp preprocessor on the web. is there other ways to fix it?

thanks
0 Kudos
Reply