Solved

Linking an MFC Extension DLL in release mode

Posted on 2002-07-10
5
393 Views
Last Modified: 2013-11-20
I have been working on this problem for many days. The DLL will link in debug mode, but not in release mode.

The error:

mfcs42.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in PIMMPDllCtl.obj
mfcs42.lib(dllmodul.obj) : error LNK2005: __pRawDllMain already defined in PIMMPDllCtl.obj

I can find no extraneous linkings to other modules which have a 'main' entry point either... This DLL links to an image library (static), and to the MFC libraries (shared).

Since I have just begun using the experts exchange today, I do not have many points to offer for this question, but I offer them all to you...

wannasmashsensation.
0
Comment
Question by:wannasmashsensation
  • 2
5 Comments
 
LVL 12

Expert Comment

by:migel
ID: 7144066
Hi!
check your settings for release mode
for MFC shared DLL you have to define _AFXDL symbol
0
 
LVL 12

Accepted Solution

by:
migel earned 75 total points
ID: 7144070
oops mystaped
must be _AFXDLL
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question