Link Problem...
-
Dear all I have one visual C++ 6.00 MFC dll project. It contains both C and C++ files. Every time I open the project and make it clean and ther rebuild all it, following errors occures. Linking... mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj) mfcs42d.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj); second definition ignored Creating library Debug/ecpdll.lib and object Debug/ecpdll.exp Debug/ecpdll.dll : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. Creating browse info file... ecpdll.dll - 2 error(s), 1 warning(s) When I delete the C file and the header file of it and then re add them to the project this error removes but this style is not good. May u please help me. Regards Tappe
-
Dear all I have one visual C++ 6.00 MFC dll project. It contains both C and C++ files. Every time I open the project and make it clean and ther rebuild all it, following errors occures. Linking... mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj) mfcs42d.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj); second definition ignored Creating library Debug/ecpdll.lib and object Debug/ecpdll.exp Debug/ecpdll.dll : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. Creating browse info file... ecpdll.dll - 2 error(s), 1 warning(s) When I delete the C file and the header file of it and then re add them to the project this error removes but this style is not good. May u please help me. Regards Tappe
-
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN