을 구축 할 때 때 건물 :이 NODEFAULTLIB/추가 : 라이브러리를 다음과 같은 오류를 얻기
1>------ Rebuild All started: Project: hw2_hci, Configuration: Release Win32 ------
1> Source.cpp
1>Source.cpp(373): warning C4551: function call missing argument list
1>Source.cpp(627): warning C4551: function call missing argument list
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>glfw3.lib(wgl_context.obj) : error LNK2001: unresolved external symbol [email protected]
1>glfw3.lib(wgl_context.obj) : error LNK2001: unresolved external symbol [email protected]
1>glfw3.lib(wgl_context.obj) : error LNK2001: unresolved external symbol [email protected]
1>glfw3.lib(win32_monitor.obj) : error LNK2001: unresolved external symbol [email protected]
1>glfw3.lib(win32_gamma.obj) : error LNK2001: unresolved external symbol [email protected]
1>glfw3.lib(win32_monitor.obj) : error LNK2001: unresolved external symbol [email protected]
1>glfw3.lib(win32_gamma.obj) : error LNK2001: unresolved external symbol [email protected]
1>glfw3.lib(win32_monitor.obj) : error LNK2001: unresolved external symbol [email protected]
1>glfw3.lib(win32_gamma.obj) : error LNK2001: unresolved external symbol [email protected]
1>glfw3.lib(win32_gamma.obj) : error LNK2001: unresolved external symbol [email protected]
1>C:\Users\student\Documents\VSTest\hw2_hci\Release\hw2_hci.exe : fatal error LNK1120: 8 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
추가 한 다음, 같은 오류 :
그리고이 :
이 문제가 발생할 때 Use MFC in a Static Library
. 왜 이런 일이 일어나는 걸까요?
다른 사람이 this 페이지로 이동하도록 제안 했으므로 다음과 같이 추가했습니다.
그리고 오류 : gdi32.lib
를 추가 한 후 나는 다음과 같은 오류 가지고
:
1> Finished generating code
1>MSVCRT.lib(MSVCR110.dll) : error LNK2005: _calloc already defined in LIBCMT.lib(calloc.obj)
1>MSVCRT.lib(MSVCR110.dll) : error LNK2005: _free already defined in LIBCMT.lib(free.obj)
1>MSVCRT.lib(MSVCR110.dll) : error LNK2005: _realloc already defined in LIBCMT.lib(realloc.obj)
1>MSVCRT.lib(MSVCR110.dll) : error LNK2005: __strdup already defined in LIBCMT.lib(strdup.obj)
1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" ([email protected]@[email protected]@@Z) already defined in LIBCMT.lib(typinfo.obj)
1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" ([email protected]@[email protected]@@Z) already defined in LIBCMT.lib(typinfo.obj)
1>C:\Users\student\Documents\VSTest\hw2_hci\Release\hw2_hci.exe : fatal error LNK1169: one or more multiply defined symbols found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
추가 종속성에 user32.lib를 추가해야 할 수도 있습니다. – cup
@cup 나는 그것을 추가하여 실제로 몇 가지 문제를 해결했습니다! 그러나 몇 가지 더 남아 있습니다! –
gdi32.lib도 필요합니다. – cup