This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]