- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am trying to use a C library in a Fortran program. This used to work fine
with MSVC 6.0 and CVF 6.6, but I am trying out the Intel Fortran 9.1 compiler
and therefore also Visual C++.net.
When linking the program I get messages about _malloc() and a whole lot more:
Test_04 error LNK2005: ___sbh_alloc_block already defined in LIBC.lib(sbheap.obj)
How should I proceed? I have not specified any libraries in particular (beyond my own one) and the project was converted automatically from the previous version.
Regards,
Arjen
I am trying to use a C library in a Fortran program. This used to work fine
with MSVC 6.0 and CVF 6.6, but I am trying out the Intel Fortran 9.1 compiler
and therefore also Visual C++.net.
When linking the program I get messages about _malloc() and a whole lot more:
Test_04 error LNK2005: ___sbh_alloc_block already defined in LIBC.lib(sbheap.obj)
How should I proceed? I have not specified any libraries in particular (beyond my own one) and the project was converted automatically from the previous version.
Regards,
Arjen
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found the solution: /NODEFAULTLIB:libcd
At the very end of the long list of messages there was this suggestion
and that did the trick.
Regards,
Arjen
At the very end of the long list of messages there was this suggestion
and that did the trick.
Regards,
Arjen

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