Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. DrCarbon

    NOOB: multiple definition error when compiling with f77 on FC3

    Oops. I was wrong. There isn't a repeat data statement in the code I'm trying to work with. So, disregard the post above. I'm still totally lost! I just know that site_ is being defined multiple times and can't figure out where. If anybody wants to try the code and save me from putting my head...
  2. DrCarbon

    NOOB: multiple definition error when compiling with f77 on FC3

    Ok. I've found the problem. I found a multiple declaration using data in two subroutines. Reworking the previous example, this is what is happening. This is the cblk.inc file: common /cblk/j This is the callee.f file: subroutine usecom include 'cblk.inc' data j /5/...
  3. DrCarbon

    NOOB: multiple definition error when compiling with f77 on FC3

    Yes. That works for me too. Following the syntax of the makefile I'm trying to use: g77 -c -o callee.o callee.f g77 -c -o caller.o caller.f g77 -o caller caller.o callee.o And nm doesn't return anything with symbol D which is what is supposed to happen nm *.o | grep D I have to go out...
  4. DrCarbon

    NOOB: multiple definition error when compiling with f77 on FC3

    Ah ha. Is this it? 18. Known Causes of Trouble with GNU Fortran 18.4.2 Multiple Definitions of External Names g77 doesn't allow a common block and an external procedure or BLOCK DATA to have the same name. Some systems allow this, but g77 does not, to be compatible with f2c.
  5. DrCarbon

    NOOB: multiple definition error when compiling with f77 on FC3

    I'm not on a Sun, but using g77 compiler in Linux. Is there such an option? I'm reading the man page now, but not finding anyhting obvious.
  6. DrCarbon

    NOOB: multiple definition error when compiling with f77 on FC3

    Thanks so much for replying! 1) I think SITE is already a named common block. The include file that names SITE looks like this: c Site variables for FACET version 97.5, included in Z3.INC. COMMON/SITE/ xtree, area, ps, dlat, slope, aspect, elev, 2 mdelta, xk, theta, phi...
  7. DrCarbon

    NOOB: multiple definition error when compiling with f77 on FC3

    Greetings. I'm not much of a fortran programmer so I'm throwing myself on the mercy of the forum. I was given a program that compiles on Compaq Fortran. It also compiles on Sun's fussy compiler when IEEE flags are included. When I invoke the makefile on a vanilla build of FC3 all the objects...

Part and Inventory Search

Back
Top