- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
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!
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
i saw some one suggested to upgrade cpp preprocessor on the web. is there other ways to fix it?
thanks

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page