Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!emory!mephisto!udel!sbcs!bnlux0!cpa From: cpa@bnlux0.bnl.gov (Chris Armstrong) Newsgroups: comp.os.os2 Subject: MS C 6.0 and Fortran Message-ID: <1839@bnlux0.bnl.gov> Date: 3 May 90 14:31:12 GMT Organization: Brookhaven National Lab Lines: 16 I posted a article previously describing a problem I was having replacing the C 6.0 RTL version of putchar() with my own, i.e. at link time I get "multiply defined symbol" errors, in spite of me using the /NOD and /NOE link options. Well that was relatively easily worked around. However the problem is much more serious than I thought. I use MS Fortran and MS C together in the same program (for better or worse). This requries that I link Fortran progs with both the LLIBFMT.LIB and LLIBCMT.LIB files. This worked fine with the C 5.1 libraries and linker. However now I get the "multiply defined symbols" error for all the functions common to the two libraries, the error the /NOE /NOD option is supposed to suppress.... Result C6.0 is unusable! The linker is MS Seg-Exe 5.10 and the link options I use are /NOE /NOD /CO. Anyone any idea what I'm doing wrong. Everything worked fine with Fortran 5.0 and C 5.1....... Chris Armstrong.