link error for mixed Visual Fortran & VC programming

link error for mixed Visual Fortran & VC programming

I have a mixed-language project, where the main C function is calling seperate Fortran90 and C modules.
I get the following linker error:
dformt.lib(matherr.obj) : error LNK2005: __matherr already defined in LIBCMTD.lib(matherr.obj)
bin/RtaffD.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

RtaffD.exe - 2 error(s), 1 warning(s)
I could not find how to override this from the C/C++ or Fotran tabs in the project setting dialog. Anybody knows how to do that ? Any help?

I'm using Visual Fortran 6.1 & VC++ 6.0 (service pack 4).

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Steve already provided solution to that problem here


Message Edited by on 12-09-2005 09:45 AM

Thanks a lot Arthur.

Leave a Comment

Please sign in to add a comment. Not a member? Join today