Hey everyone, I'm just got started learning C++ because I don't want to use C# anymore... But their is an issue I am having with something about having unresolved external symbols.
I have another project in the same solution which references to the .lib file produced by my solution with the Thread.h etc in... It compiles fine, but when I input "thread.h" and use Thread, it gives me a compile error "Error 1 error LNK2019: unresolved external symbol "public: __thiscall Thread::Thread(int (__cdecl*)(void))" (??0Thread@@QAE@P6AHXZ@Z) referenced in function _main"
My most common problem with these is that I don't have something referenced correctly in the Linker properties but if you are linking to the library it could be when you are calling the Thread constructor it doesn't understand which one you are calling.
Make sure you are linking it in; Configuration Properties -> Linker -> Input -> Additional Dependencies and make sure that the library exists, that you compiled the Thread project to create the library.
My most common problem with these is that I don't have something referenced correctly in the Linker properties but if you are linking to the library it could be when you are calling the Thread constructor it doesn't understand which one you are calling.
Make sure you are linking it in; Configuration Properties -> Linker -> Input -> Additional Dependencies and make sure that the library exists, that you compiled the Thread project to create the library.