- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
when i compile a fortran code using intel fortran compiler for linux in centos 64 bit linux machine, i'm getting this error (Error #5120: Unterminated character constant?). what does the error mean, and how to solve this?
the compiler points out the error from line PARAMETER(kCompPath='/etc/kcarta/kcartaV... but the syntax for PARAMETER is verified with compiler gfortran.
the compiler points out the error from line PARAMETER(kCompPath='/etc/kcarta/kcartaV... but the syntax for PARAMETER is verified with compiler gfortran.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - sramanujam
when i compile a fortran code using intel fortran compiler for linux in centos 64 bit linux machine, i'm getting this error (Error #5120: Unterminated character constant?). what does the error mean, and how to solve this?
the compiler points out the error from line PARAMETER(kCompPath='/etc/kcarta/kcartaV... but the syntax for PARAMETER is verified with compiler gfortran.
the compiler points out the error from line PARAMETER(kCompPath='/etc/kcarta/kcartaV... but the syntax for PARAMETER is verified with compiler gfortran.
If this is a fixed-format source form file (that is, an old F77 column-oriented format, .for, .f, etc)
make sure to use
-extend-source 80
or
-extend-source 132
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please attach the source file in question (see instructions below) so we can see what is going on.
The error message itself is pretty clear. How to solve it will depend on what's in your source. Does your source have a .F or .F90 (uppercase F) file type? That would cause it to run through the preprocessor which might change things.
The error message itself is pretty clear. How to solve it will depend on what's in your source. Does your source have a .F or .F90 (uppercase F) file type? That would cause it to run through the preprocessor which might change things.
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