Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

4 byte integers with gfortran

Status
Not open for further replies.

belson17

Programmer
Mar 19, 2010
4
US
I have a large legacy code compiled for intel's ifort compiler, and I'm trying to compile it with gfortran. The original code saves unformatted files with 4-byte integers. I need to do the same with gfortran, but the only relevant compiler option I've seen is -fdefault-integer-8, not -4.

I'd like a way to do this through compiler options if possible, changing all the declarations from integer to integer*4 is a last resort.

Thanks!
 
The default is -4. If you are working on an app which has to work on 64-bit, then use the -8 option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top