Started generation... 1>------ has been started: Project: Bosch_EDC7, Configuration: Debug Win32 ------ 1>edc7.lib(Bosch_EDC7.obj) : MSIL .netmodule or module compiled with /GL found; link is being restarted with /LTCG; adding /LTCG to link command line to improve linker performance 1>LINK : warning LNK4075: ignore "/INCREMENTAL" (due to "/LTCG" specification) 1>Bosch_EDC7.obj : warning LNK4075: ignore "/EDITANDCONTINUE" (due to "/OPT:ICF" specification) 1>LIBCMT.lib(invarg.obj) : error LNK2005: ___pInvalidArgHandler has been defined in libcmtd.lib(invarg.obj) 1>LIBCMT.lib(invarg.obj) : error LNK2005: __initp_misc_invarg has been defined in libcmtd.lib(invarg.obj) 1>LIBCMT.lib(invarg.obj) : error LNK2005: __call_reportfault has been defined in libcmtd.lib(invarg.obj) 1>LIBCMT.lib(invarg.obj) : error LNK2005: __set_invalid_parameter_handler has been defined in libcmtd.lib(invarg.obj) 1>LIBCMT.lib(invarg.obj) : error LNK2005: __get_invalid_parameter_handler has been defined in libcmtd.lib(invarg.obj) 1>LIBCMT.lib(invarg.obj) : error LNK2005: __invoke_watson has been defined in libcmtd.lib(invarg.obj) 1>LIBCMT.lib(invarg.obj) : error LNK2005: "void __cdecl _invoke_watson(unsigned short const *,unsigned short const *,unsigned short const *, unsigned int,unsigned int)" (? _invoke_watson@@YAXPBG00II@Z) is already defined in libcmtd.lib(invarg.obj) 1>LIBCMT.lib(invarg.obj) : error LNK2005: __invalid_parameter has been defined in libcmtd.lib(invarg.obj) 1>LIBCMT.lib(invarg.obj) : error LNK2005: "void __cdecl _invalid_parameter(unsigned short const *,unsigned short const *,unsigned short const *, unsigned int,unsigned int)" (? _invalid_parameter@@YAXPBG00II@Z) is already defined in libcmtd.lib(invarg.obj) 1>nafxcw.lib(objcore.obj) : error LNK2005: "public: static struct CRuntimeClass const CObject::classCObject" (?classCObject@CObject@@ 2UCRuntimeClass@@B) is already defined in nafxcwd.lib(objcore.obj) 1>nafxcw.lib(objcore.obj) : error LNK2005: "public: virtual struct CRuntimeClass * __thiscall CObject::GetRuntimeClass(void)const " (? GetRuntimeClass@CObject@@UBEPAUCRuntimeClass@@XZ) already defined in nafxcwd.lib(objcore.obj) 1>nafxcw.lib(objcore.obj) : error LNK2005: "public: class CObject * __thiscall CRuntimeClass::CreateObject(void)" (?CreateObject@ CRuntimeClass@@QAEPAVCObject@@XZ) already defined in nafxcwd.lib(objcore.obj) 1>nafxcw.lib(objcore.obj) : error LNK2005: "public: int __thiscall CObject::IsSerializable(void)const " (?IsSerializable@CObject@@QBEHXZ) already defined in nafxcwd.lib(objcore.obj) 1>nafxcw.lib(objcore.obj) : error LNK2005: "public: int __thiscall CRuntimeClass::IsDerivedFrom(struct CRuntimeClass const *)const " (? IsDerivedFrom@CRuntimeClass@@QBEHPBU1@@Z) already defined in nafxcwd.lib(objcore.obj) 1>nafxcw.lib(objcore.obj) : error LNK2005: "public: int __thiscall CObject::IsKindOf(struct CRuntimeClass const *)const " (?IsKindOf@CObject@@@ QBEHPBUCRuntimeClass@@@Z) is already defined in nafxcwd.lib(objcore.obj) 1>nafxcw.lib(objcore.obj) : error LNK2005: "class CObject * __cdecl AfxDynamicDownCast(struct CRuntimeClass *,class CObject *)" (? AfxDynamicDownCast@@YAPAVCObject@@PAUCRuntimeClass@@PAV1@@Z) already defined in nafxcwd.lib(objcore.obj) 1>nafxcw.lib(objcore.obj) : error LNK2005: "void __stdcall AfxClassInit(struct CRuntimeClass *)" (?AfxClassInit@@@YGXPAUCRuntimeClass@@@Z) already defined in nafxcwd.lib(objcore.obj) 1>nafxcw.lib(winmain.obj) : error LNK2005: "class CWinApp * __stdcall AfxGetApp(void)" (?AfxGetApp@@YGPAVCWinApp@@XZ) is already defined in nafxcwd.lib(afxinl2 .obj) is defined in 1>LINK : warning LNK4098: Default library "LIBCMT" conflicts with other libraries; please use /NODEFAULTLIB:library 1>LINK : warning LNK4098: The default library "nafxcw.lib" conflicts with other libraries; please use /NODEFAULTLIB:library 1>D:\A-Working\VS10_Projects\Bosch_EDC7\Bosch_EDC7\Debug\Bosch_EDC7.exe : fatal error LNK1169: One or more multi-defined symbols found 1> The operation to generate the project "Bosch_EDC7.vcxproj" has been completed - failed. ========== Generated: 0 successful, 1 failed, 2 latest, 0 skipped ==========
Solution:
The reason is that in Debug mode, some libraries are used in conflict, we just ignore the conflicting libraries.
Project Project Properties —> Linker —> Input —> Ignore specific default libraries —>
nafxcw.lib;libcmt.lib
Read More:
- [Solved] Fatal error LNK1169: one or more multiple defined symbols were found
- Ionic Save to Gallery Plugin IOS Error: Method ‘requestAuthorization:’ not defined in Plugin ‘PhotoLibrary’ ERROR: Method ‘xxx’ not defined
- [Solved] websocket error in Linux service: / lib64 / libc. So. 6: version ` glibc_2.17‘ not found
- [Solved] Linux – error: cannot open Packages database in /var/lib/rpm
- Petalinux Failed to open PetaLinux lib: librdi_commonxillic.so: cannot open shared object file:
- [Solved] Linux Perl Error: cannot locate cpan.pm in @inc (@inc contains:inc/usr/local/lib64/perl5/usr)
- [Solved] ImportError:lib***.so–cannot open shared object file: No such…(pycharm/clion Error but shell No Error)
- [Solved] NameError: name ‘reload’ is not defined on ROS melody terminal
- Linux accesses the shared directory of windows, pysmb (parameter remote)_Name (defined)
- [Solved] Ubuntu Execute uci Error: uci: error while loading shared libraries: lib
- [Solved] pxp_lib.h:19:10: fatal error: linux/pxp_device.h: No such file or directory
- PM2 user defined Log, PID and other Log File Locations
- [Solved] ERROR: ld.so: object ‘/$LIB/libonion.so‘ from /etc/ld.so.preload
- [Ubuntu] How to Solve dpkg Error: dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory
- How to Delete New Memory in Vector
- When installing software in Ubuntu, it prompts: E: You don’t have enough free space in /var/cache/apt/archives/.
- How to Create Threads in Linux
- Solutions to errors in installing xunsearch engine in centos8.0
- The upgrade of Ubuntu results in an error in the compilation of Android Jack [Two Method to Solve]
- Ubuntu20.04 install the ROS noetic version in catkin_Problems in make compilation