- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I built a full project which contains a Fortran project and a VC
project, in this full project, Fortran calls VC.
But when I built this full project using Visual Studio 2003, it can be
successful, but when I compile this full project, I encountered the following
error:
~~
nafxcw.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBCMT.lib(delete.obj)
Release/GA.exe : fatal error LNK1169: one or more multiply defined symbols found
~~
Someone can help to settle this problem? Thank you very much!
project, in this full project, Fortran calls VC.
But when I built this full project using Visual Studio 2003, it can be
successful, but when I compile this full project, I encountered the following
error:
~~
nafxcw.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBCMT.lib(delete.obj)
Release/GA.exe : fatal error LNK1169: one or more multiply defined symbols found
~~
Someone can help to settle this problem? Thank you very much!
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I know I've seen this before, but I can't locate any earlier discussions. My memory says to add nafxcw.lib to the list of "additional dependencies" on the Linker Input property page. The problem has to do with the order in which the MSVC libraries are found.
![](/skins/images/895D6060305DF45A57FACF854B5A8CD1/responsive_peak/images/icon_anonymous_message.png)
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