- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
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?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks so much!
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page