Solved

Linking an MFC Extension DLL in release mode

Posted on 2002-07-10
5
392 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

832 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