'링크에러'에 해당되는 글 1건
[스레드] error LNK2001: unresolved external symbol __endthreadex
Posted on 2008. 11. 11. 10:38
Filed Under Visual C++
--------------------Configuration: tcpechoserv - Win32 Debug--------------------
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/tcpechoserv.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
tcpechoserv.exe - 3 error(s), 0 warning(s)
Linking... nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Debug/tcpechoserv.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe.
Symptom:
Microsoft Visual C++ generates the link error:
uafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
uafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Possible Cause:
A library that is being used was built as a multithreaded DLL, however the application is only single threaded.
Remedy:
Change the application to multithreaded. To do this:
- Go to Project Settings and select the 'C/C++' tab.
- Select 'Code Generation' in Category.
- Set ‘Use run-time library’ to either ‘Debug Multithreaded’ (for debug builds) or ‘Multithreaded’ (for release builds).
라는 결과가 나온다.
VC++ 6.0에서
Project > setting > General > Microsoft Foundation Classes:
에서 Use MFC in a Static Libary를 선택해주니 문제 해결