Re: strange linking problem



Richard E Maine wrote:
In article <D8ydneYJcsMupOzfRVn-qw@xxxxxxxxxxx>,
 glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx> wrote:

This can cause some interesting
effects if you accidentally (or not) name COMMON the same as a subroutine.

Been there. Was no fun. :-( Accidentally.

I did see one once that coded the OS/360 system call to return the time, along with appropriate initialization and return instruction into an eight byte floating point constant. It was then used to initialize a COMMON variable, and called to return the time. That is the only non-accidental one I remember.

-- glen

.



Relevant Pages

  • Re: fortran95 error
    ... At a guess you are using a subroutine like: ... declarations I saw nothing that should have given the above error. ... or better yet in a separate COMMON of their own. ... they are all default reals. ...
    (comp.lang.fortran)
  • Re: fortran95 error
    ... At a guess you are using a subroutine like: ... declarations I saw nothing that should have given the above error. ... or better yet in a separate COMMON of their own. ... they are all default reals. ...
    (comp.lang.fortran)
  • Re: reading two separate files
    ... in the first file? ... If you want to read different files using the same subroutine there ... common /a1b1/ a,b,c ...
    (comp.lang.fortran)
  • Re: Lost BLOCKDATA initialisation in LIB files
    ... I think the confusion comes from people thinking of BLOCK DATA as a definition for a data segment in the target object file. ... Maybe it would be better if BLOCK DATA were restricted to defining data segments in a way that would be converted to a data segment rather than a subroutine. ... Since BLOCK DATA is an initialization subroutine rather than a BLOCK of DATA, it seems that an associating an initialization subroutine with a module makes a lot of sense. ...
    (comp.lang.fortran)
  • Re: Reusability: arguments vs modules
    ... code design for beginners: ... Based on experience with codes that did this sort of thing (via common blocks but the ... Apart from a testing framework why would you write a subroutine to ...
    (comp.lang.fortran)