Solved

Linking an MFC Extension DLL in release mode

Posted on 2002-07-10
5
386 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
Comment Utility
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
Comment Utility
oops mystaped
must be _AFXDLL
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now