- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm using intel_fc_80 copiler to compile fortan programs using ifort command on linux platform.I'm getting the following error.Any pointers to remove these errors would be highly welcome.
fortcom: Error: aababc.f, line 145: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association [NMECI]
COMMON /XYIJKL/ XY(NMECI,NMECI,NMECI,NMECI)
.........................^
fortcom: Error: aababc.f, line 146: A COMMON block data object must not be an automatic object. [OCCA]
COMMON /BASEOC/ OCCA(NMECI)
COMMON /XYIJKL/ XY(NMECI,NMECI,NMECI,NMECI)
.........................^
fortcom: Error: aababc.f, line 146: A COMMON block data object must not be an automatic object. [OCCA]
COMMON /BASEOC/ OCCA(NMECI)
Following are the lines(145,146) which are the source of errors
COMMON /XYIJKL/ XY(NMECI,NMECI,NMECI,NMECI)
COMMON /BASEOC/ OCCA(NMECI)
Do i need to make changes to the above lines in order to compile the above two lines without nay errors?I'm sure of making some changes.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
NMECI would have to be specified as a constant (normally in a PARAMETER statement) prior to use in those declarations.

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