Mixed language link error

Mixed language link error

I am trying to call a subroutine compiled using CVF6.6a from C++ .NET. I get the following link error:-

bessel_start error LNK2005: __matherr already defined in LIBCD.lib(matherr.obj)

What library settings do I need to avoid the conflict between FORTRAN and C libraries?

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

The problem here is a library order issue, due to the brain-dead way that MS puts __matherr in the MSVC libraries. The solution is to ensure that the CVF libraries are searched first - do this by putting DFOR.LIB in the list of libraries/objects to be searched in the linker settings dialog.


Retired 12/31/2016

Thanks so much!

Leave a Comment

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