Occurs when compiling an MFC DLL program
Error2 error lnk1169:one or more multiply defined symbols founde:\c++\hooktest\ Copyfiledetour\cfdetour\debug\1t.dll1 1t 1
Error 1 error LNK2005: [email protected] already defined in 1t.obje:\c++\hooktest\ Copyfiledetour\cfdetour\1t\mfcs100ud.lib (dllmodul.obj)1t
1t DLL project name for the test
Error Resolution Method:
Location: Project->propertie->c/c++->preprocessor->preprocessor Definitions
The original sentence "win32;_debug;_windows;_usrdll;datalog_exports;% ( preprocessordefinitions) "Remove the inside _usrdll to resolve the problem. It is very likely that this problem is caused by adding # include <afx.h>.
The following error may occur after you do not affect the program's compilation Run
3IntelliSense: #error directive:please use THE/MD switch for _afxdll buildsd:\vs2010c++\vc\atlmfc\ Include\afxver_.h Bayi 3
You can change it with the following settings
Project->property->configuration Properties->c/c++->code generation->runtime Library, at Runtime Under Library, select the multithreaded DLL or the debug multithreaded DLL.
DLL file compilation error [email protected] Already defined in Xxx.obj