Re: Copy configuration link error
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Thu, 27 Apr 2006 20:24:15 -0400
"Drew" <drew.nospam.myers@xxxxxxxx> wrote in message
news:eW2niqkaGHA.460@xxxxxxxxxxxxxxxxxxxx
I created a new configuration (VS6) and copied settings from an
existing (working)
configuration. Now, the new configuration has a link error:
mfcs42.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined
in msvcrt.lib(dllmain.obj)
Make sure MFC setting agrees with CRT setting. See
Project | Settings | General | Microsoft Foundation Classes
Project | Settings | C/C++ | Code Generation | Use run-time library
If you choose "Use MFC in a Static Library" for the first setting, you
should also use something not containing DLL (e.g. Multithreaded or
Debug Multithreaded) for the second setting. And if you choose "Use MFC
in a Shared DLL", you should choose DLL version of CRT.
Your current configuration links to MFC statically and to CRT
dynamically. This won't work.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: Copy configuration link error
- From: Drew
- Re: Copy configuration link error
- References:
- Copy configuration link error
- From: Drew
- Copy configuration link error
- Prev by Date: Re: unresolved external
- Next by Date: Hard question of setting pointer to memory address
- Previous by thread: Copy configuration link error
- Next by thread: Re: Copy configuration link error
- Index(es):
Relevant Pages
|