Link error

  • Thread starter Thread starter Takashi
  • Start date Start date
T

Takashi

I have the ff link errors. Anyone know which libs are required?

error LNK2019: unresolved external symbol __beginthreadex referenced in
function "public: int __thiscall CWinThread::CreateThread(unsigned
long,unsigned int,struct _SECURITY_ATTRIBUTES *)"
(?CreateThread@CWinThread@@QAEHKIPAU_SECURITY_ATTRIBUTES@@@Z)


mtia
 
Hi Takashi!
I have the ff link errors. Anyone know which libs are required?

error LNK2019: unresolved external symbol __beginthreadex referenced in
function "public: int __thiscall CWinThread::CreateThread(unsigned
long,unsigned int,struct _SECURITY_ATTRIBUTES *)"
(?CreateThread@CWinThread@@QAEHKIPAU_SECURITY_ATTRIBUTES@@@Z)

You must use the multithreaded CRT (Project|Properties|C/C++|Code
Generation|Runtime Library: "Multi-threaded Debug DLL (/MDd)" for Debug
and "Multi-threaded DLL (/MD)" for Release.

If you link against the static MFC, you also must choose the static CRT
("Multi-threaded Debug (/MTd)" for Debug and "Multi-threaded (/MT)" for
Release.

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Back
Top