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?

publicaciones de 3 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

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.


Steve - Intel Developer Support

Thanks so much!

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya