This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Is this code OK?
- From: Bud Davis <bdavis9659 at sbcglobal dot net>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: fortran at gcc dot gnu dot org
- Date: Sun, 30 Aug 2009 18:53:28 -0700 (PDT)
- Subject: Re: Is this code OK?
> >
> >? ? ? ? real a
> >? ? ? ? common /abcd/ a
> >? ? ? ? data a / 1.0 /
> >? ? ? ? end
> >
does it work ? Yes, and No.
I found it when trying to link a program where the fortran common
was being defined by a C program. The linker was complaining about
duplicate symbol definitions.
Fortran code linked with fortran code looks like it would work.
After thinking about it, I am of a mind to forget about.
--bud