I have dll project. I added to my solution other quite big project that I want to use as a lib in my dll. But when I started to use new project from my dll project, I had several linking errors, also like in this question error LNK2005: new and delete already defined in LIBCMTD.lib(new.obj)
Dllmain Already Defined In Corelibc Lib
I have a ATL simple object project which uses MFC that I can build for awhile and then it starts getting the following error:Error LNK2005: _DllMain@12 already defined in msvcrtd.lib(dllmain.obj) mfcs90ud.lib I have tried all the solutions in So far:I have added the value "mfcs90ud.lib; msvcrtd.lib" to the Ignore Specfic Library Linker property and the Add Module to Assembly propery. This results in many undefined entry points.I have moved the include of afx.h up to the top of stdafx.h I have created a new header file forcelib.h and included it in dlldatax.c.The only way that I have found to get around the problem is to completely rebuild it using the New project wizard. It will then build properly for awhile then start getting the same errors. 2ff7e9595c
Comments