[cocos2dx] Error Collection 3, warning LNK4098: The default library "libcmt.lib" conflicts with other libraries; please use /NODEFAULTLIB:library

AppDelegate.obj : warning LNK4075: '/EDITANDCONTINUE' ignored (due to '/SAFESEH' specification)
1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: Default library 'libcmt.lib' conflicts with usage of other libraries; please use /NODEFAULTLIB:library
1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: The default library "libcmtd.lib" conflicts with other libraries; please use /NODEFAULTLIB:library
1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: The default library "msvcrt.lib" conflicts with the usage of other libraries; please use /NODEFAULTLIB:library
1>Loading.obj : error LNK2001: unresolved external symbol "public: __thiscall cocos2d::ui::Margin::Margin (void)" (??0Margin@ui@cocos2d@@QAE@XZ)
1>HelloWorldScene.obj : error LNK2001: unresolved external symbol "public: __thiscall cocos2d::ui::Margin::Margin(void)" (??0Margin@ui@cocos2d@@QAE@XZ)
1>MyGame.obj : error LNK2001: unresolved external symbol "public: __thiscall cocos2d::ui::Margin::Margin(void)" (??0Margin@ui@cocos2d@@QAE@XZ)
1>MyGameMain.obj : error LNK2001: unresolved external symbol "public: __thiscall cocos2d::ui::Margin::Margin(void)" (??0Margin@ui@cocos2d@@QAE@XZ)
1>AppDelegate. obj : error LNK2019: unresolved external symbol "public: __thiscall cocos2d::ui::Margin::Margin(void)" (??0Margin@ui@cocos2d@@QAE@XZ) in function "void __cdecl referenced in cocos2d::ui::`dynamic initializer for 'MarginZero''(void)" (??__EMarginZero@ui@cocos2d@@YAXXZ


) Solution: Right-click on the project -> Reference, add the reference used

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325472511&siteId=291194637