I'm writing a windows service, and I have additioanl dependenceis for the linker set to include kernel32.lib and I am inlcuding windows.hhowever when I try to build I still get this linker error:
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)
as well as this one:
error LNK2019: unresolved external symbol __endthreadex referenced in function "void __stdcall AfxEndThread(unsigned int,int)" (?AfxEndThread@@YGXIH@Z)
I am actually not using threading anywhere that I know of and after searching thorugh the project code I couldn't find one call to either of these functions. Not sure what is going on here??