Link error

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
 
J

Jochen Kalmbach [MVP]

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top