Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > g77: Globals warnings

g77: Globals warnings
Thread Tools
Professional Poster
Join Date: Oct 2001
Location: Unknown
Status: Offline
Reply With Quote
Nov 26, 2001, 10:01 AM
 
This is cross posted on the "unix" board. Please forgive the redundancy.

I'm trying to compile a fortran program on my Mac running OS X. The program compiles fine on SGI, etc systems which have true fortran compilers, so the source code is fine. I am having the following problem:

g77 -o foo foo.f

gives warnings of the type:

line##: warning:
CALL BAR (A(I2),A(I1),A(I3),A(I4),A(I5))
1
line##: continued:
SUBROUTINE BAR (F,BNDOC,LIST,LISTA,SCR)
2
ARGUMENT## (named 'list') of BAR is one type at (2) but is some other
type at (1) (info -g77 M Globals)

Enough of these warnings are generated that the compilation stops.

It had been suggested that I use the -fno-globals flag

(g77 -fno-globals -o foo foo.f)

The program now compiles, but does not seem to work. What does the -fno-globals flag really do? I couldn't find it in the gnu documentation.

Is there something else I should try?

If Heaven has a dress code, I'm walkin to Hell in my Tony Lamas.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:16 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2