home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / fortran / 4292 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  4.8 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!caen!batcomputer!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!lure.latrobe.edu.au!tspcjr
  2. Newsgroups: comp.lang.fortran
  3. Subject: BASIC and Fortran Mixed Language Problem (I/O and strings)
  4. Message-ID: <1992Nov12.123047.1@lure.latrobe.edu.au>
  5. From: tspcjr@lure.latrobe.edu.au
  6. Date: Thu, 12 Nov 1992 02:30:47 GMT
  7. Sender: news@lugb.latrobe.edu.au (USENET News System)
  8. Organization: VAX Cluster, Computer Centre, La Trobe University 
  9. Lines: 108
  10.  
  11. [CODE and ERRORS follow]
  12.  
  13. Hi.
  14.  
  15. I'm having problem with mixed-language programming (Microsoft).  No problems
  16. arise if I merely pass integers, reals, or arrays, but with strings, problems
  17. arise (also if there is any I/O).
  18.  
  19. I don't want to actually change the string, just access the information.  I
  20. could, of course, pass an equivalent array (say of ASCII values), but I'm sure
  21. there was be a work-around.  I get the same sort of link error if any I/O is
  22. done.  Fortran is trying to perform some form of initialisation for some
  23. things, and references routines with the same name.
  24.  
  25. Yes, I put the Basic modules first, and even specifiy "/nod /noe".  Is using
  26. LIB the only way around this?  Will this even work?  It happens with both
  27. Quick libraries and normal linking of an executable.
  28.  
  29. Any ideas?
  30.  
  31. Thanks,
  32.  
  33. Chris . . .
  34.  
  35. FORTRAN CODE
  36.       subroutine Nothing (s)
  37.       character * (2) s, t
  38.  
  39.       t = s
  40.  
  41.       return
  42.       end
  43.  
  44.  
  45. ERRORS
  46. Microsoft (R) Segmented-Executable Linker  Version 5.15
  47. Copyright (C) Microsoft Corp 1984-1991.  All rights reserved.
  48.  
  49. c:\lib\llibfor7.lib(dos\crt0.asm) :
  50.         error L2025: __aexit_rtn : symbol defined more than once
  51. c:\lib\llibfor7.lib(dos\crt0.asm) :
  52.         error L2025: __aseglo : symbol defined more than once
  53. c:\lib\llibfor7.lib(dos\crt0.asm) :
  54.         error L2025: __asizds : symbol defined more than once
  55. c:\lib\llibfor7.lib(dos\crt0.asm) :
  56.         error L2025: __atopsp : symbol defined more than once
  57. c:\lib\llibfor7.lib(dos\crt0.asm) :
  58.         error L2025: __cintDIV : symbol defined more than once
  59. c:\lib\llibfor7.lib(dos\crt0.asm) :
  60.         error L2025: __amsg_exit : symbol defined more than once
  61. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  62.         error L2025: __osversion : symbol defined more than once
  63. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  64.         error L2025: _errno : symbol defined more than once
  65. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  66.         error L2025: __exit : symbol defined more than once
  67. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  68.         error L2025: __child : symbol defined more than once
  69. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  70.         error L2025: __nfile : symbol defined more than once
  71. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  72.         error L2025: ___argc : symbol defined more than once
  73. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  74.         error L2025: __cexit : symbol defined more than once
  75. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  76.         error L2025: __intno : symbol defined more than once
  77. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  78.         error L2025: __dosvermajor : symbol defined more than once
  79. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  80.         error L2025: __oserr : symbol defined more than once
  81. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  82.         error L2025: ___argv : symbol defined more than once
  83. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  84.         error L2025: __dosverminor : symbol defined more than once
  85. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  86.         error L2025: _environ : symbol defined more than once
  87. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  88.         error L2025: __osfile : symbol defined more than once
  89. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  90.         error L2025: __osmode : symbol defined more than once
  91. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  92.         error L2025: __pspadr : symbol defined more than once
  93. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  94.         error L2025: __ovlvec : symbol defined more than once
  95. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  96.         error L2025: __pgmptr : symbol defined more than once
  97. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  98.         error L2025: __acfinfo : symbol defined more than once
  99. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  100.         error L2025: __ovlflag : symbol defined more than once
  101. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  102.         error L2025: __aintdiv : symbol defined more than once
  103. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  104.         error L2025: __osmajor : symbol defined more than once
  105. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  106.         error L2025: __osminor : symbol defined more than once
  107. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  108.         error L2025: __umaskval : symbol defined more than once
  109. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  110.         error L2025: __doserrno : symbol defined more than once
  111. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  112.         error L2025: __fac : symbol defined more than once
  113. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  114.         error L2025: _exit : symbol defined more than once
  115. c:\lib\llibfor7.lib(dos\crt0dat.asm) :
  116.         error L2025: __psp : symbol defined more than once
  117.  
  118. There were 68 errors detected
  119.