Solved

Linking an MFC Extension DLL in release mode

Posted on 2002-07-10
5
399 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bobThere java chalenge 45 97
repeatEnd java challenge 42 85
pre4 challenge 19 116
how to split multiple lines delimiter : 8 132
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Suggested Courses

734 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