PRB: Custom AppWizard Creates Defective 2nd-Generation Project (194835)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q194835 SYMPTOMS
When you build a project created with a Custom AppWizard that was based on
another project, the following link errors might occur:
mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined
in <projname>.obj
mfcs42d.lib(dllmodul.obj) : error LNK2005: __pRawDllMain already defined
in <projname>.obj
Debug/<projname>.dll : fatal error LNK1169: one or more multiply defined
symbols found
LINK : fatal error LNK1104: cannot open file "mfcapwzd.lib"
CAUSE
The Custom AppWizard project creation wizard does not carry over build
configurations of base projects. Instead, it generates standard Release and
Debug configurations. It ignores any custom settings in the original
project, such as preprocessor defines, additional libraries, custom build
steps, and so on.
RESOLUTION
Modify the project settings in the CustomizeProject function of your Custom
AppWizard.
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 12/8/2003 |
---|
Keywords: | kbAppWizard kbCustomWizard kberrmsg kbprb kbwizard KB194835 |
---|
|