Problems building COM project - VC7

O

Oliver White

Hi folks,

I'm having trouble building a new COM project I created in VC7. The
following linking errors occur:

nafxcw.lib(thrdcore.obj) : error LNK2019: unresolved external symbol
__endthreadex referenced in function "void __stdcall
AfxEndThread(unsigned int,int)" (?AfxEndThread@@YGXIH@Z)
nafxcw.lib(thrdcore.obj) : 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)
libc.lib(crt0.obj) : error LNK2019: unresolved external symbol _main
referenced in function _mainCRTStartup

Is this likely to be a project setting problem, or am I actually
missing a library?

TIA,

Oliver White
 
S

Steve Alpert

Oliver said:
Hi folks,

I'm having trouble building a new COM project I created in VC7. The
following linking errors occur:

nafxcw.lib(thrdcore.obj) : error LNK2019: unresolved external symbol
__endthreadex referenced in function "void __stdcall
AfxEndThread(unsigned int,int)" (?AfxEndThread@@YGXIH@Z)
nafxcw.lib(thrdcore.obj) : 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)
libc.lib(crt0.obj) : error LNK2019: unresolved external symbol _main
referenced in function _mainCRTStartup

Is this likely to be a project setting problem, or am I actually
missing a library?

Generally errors of this type are due to missing libraries. Visit the
documentation to see where _beginthreadex lives. They may also be a
wizard option to enable threaded library use...

/steveA
 

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