I have a project that includes files from a different project. I am getting linking errors…
“unresolved external symbol “public: _cdecl classA::classA(void”
(??()classA @@QEAA@XZ) referenced in function “class classA *_cdecl
functionB(char const*)” (?functionB@@YAPEAVClassA@@PEBD@Z)…
and other 125 errors of the same type (after the constructor, which is the error I just listed, every function from the class I use is mentioned in one of the link errors).
The path for including the files of the second project is included in my property sheet. That project, on its own, builds fine.
I have tried to add that project to my solution, and add it as a dependency. No help. I have tried to add the dll that it creates in the project – linker – input. No help.
In Configuration properties, the Runtime Library is set to /MTd.
I have even tried to add extern “C” in front of my include. No help.
I have tried to build them with Debug or Release, x64 or Win32. I prefer Release x64 but I’ll take anything.
Could you please help me – tell me what am I doing wrong, or where to look to fix this problem ? Thank you very much.
I found out that my dependencies in the Link – Input were being removed by the fact that I didn’t explicitly specify that I can have dependencies in the property sheet. After changing the property sheet, I finally was able to create a dll.