public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* compiling fortran using static variables...
@ 2005-01-08 19:16 Jupp Tscheak
  0 siblings, 0 replies; 3+ messages in thread
From: Jupp Tscheak @ 2005-01-08 19:16 UTC (permalink / raw)
  To: gcc-help

Hi all,

we're building our huge project using g++ (mainly c/c++, a bit fortran).
A fellow told me that he is not able to use static variables (attribute
SAVE).
Unfortunatly it did not work! I looked at it and everythings seems to be
correctly.
Does anyone know if there's a compiler-flag in g++ that support use of
static variables
in fortran?

Thank you!

Jupp Tscheak

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: compiling fortran using static variables
@ 2005-01-08 23:33 Bud Davis
  0 siblings, 0 replies; 3+ messages in thread
From: Bud Davis @ 2005-01-08 23:33 UTC (permalink / raw)
  To: jupp_tscheak; +Cc: gcc-help

the compiler driver used to link your executable (g++) has nothing to do
with fortran SAVE.

make sure that all you fortran is compiled with 

g77 -fno-automatic


or alternatively, properly use the SAVE statement in you fortran
routines.

if you still have problems, please post a small example and we
will figure this out :)



HTH,
bud davis



^ permalink raw reply	[flat|nested] 3+ messages in thread

* compiling fortran using static variables...
@ 2005-01-08 19:16 Jupp Tscheak
  0 siblings, 0 replies; 3+ messages in thread
From: Jupp Tscheak @ 2005-01-08 19:16 UTC (permalink / raw)
  To: gcc-help

Hi all,

we're building our huge project using g++ (mainly c/c++, a bit fortran).
A fellow told me that he is not able to use static variables (attribute
SAVE).
Unfortunatly it did not work! I looked at it and everythings seems to be
correctly.
Does anyone know if there's a compiler-flag in g++ that support use of
static variables
in fortran?

Thank you!

Jupp Tscheak

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-01-08 23:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-08 19:16 compiling fortran using static variables Jupp Tscheak
  -- strict thread matches above, loose matches on Subject: below --
2005-01-08 23:33 Bud Davis
2005-01-08 19:16 Jupp Tscheak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).