FORTRAN - SUBST help and error

  • Context: Fortran 
  • Thread starter Thread starter ns2455
  • Start date Start date
  • Tags Tags
    Error Fortran
Click For Summary
SUMMARY

The discussion centers on the use of SUBST and DSUBST in FORTRAN, clarifying that these are not intrinsic FORTRAN functions but rather preprocessor or makefile macros. A specific error encountered during compilation, 'PGF90-S-0026-Unmatched quote', was linked to a missing quote in the makefile. The issue was ultimately resolved by correcting a capitalization inconsistency in the code, which was causing multiple errors during the build process.

PREREQUISITES
  • Understanding of FORTRAN programming language
  • Familiarity with makefiles and build processes
  • Knowledge of the PGI compiler (PGF90)
  • Basic debugging techniques in programming
NEXT STEPS
  • Research the role of preprocessor macros in makefiles
  • Learn about common FORTRAN compilation errors and their resolutions
  • Explore best practices for managing case sensitivity in programming
  • Study the use of the PGI compiler and its error messages
USEFUL FOR

FORTRAN developers, software engineers debugging compilation issues, and anyone involved in building applications with makefiles.

ns2455
Messages
2
Reaction score
0
Hi,

I am new to FORTRAN and trying to debug/compile some code passed on to me.
2 questions:

- What purpose does SUBST or DSUBST serve?
- When I run my Makefile I keep getting the following error:
'PGF90-S-0026-Unmatched quote'
According to the PG manual this translates to 'Integer constant is too large for 32 bit word'
I have tried a bunch of different things but the issue is still unresolved. Any insight on this?

Thanks!
 
Technology news on Phys.org
Since no one has replied, I'll take a shot. I don't believe that SUBST and DSUBST have anything to do with Fortran. Instead, it appears that they are preprocessor or makefile macros that are used when you build (i.e., compile and link) your application.

For the error message you show, I would look at the make files to see if there is a missing quote somewhere.

Hope this helps...
 
Hey,

Thanks for your help. We were able to fix the problem. It was a capitalization inconsistency that was leading to all these different errors.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 17 ·
Replies
17
Views
5K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K