0

error LNK2019: unresolved external symbol "public: __thiscall

I have a project which has -
- ProjectA.h
- ProjectA.cpp
- Other files

ProjectA.h has a namespace that defines a function signature as

namespace someNamespace {
    class someClass {
        someClass();
        someFunction();
    };
}

I have a testProject which calls into someFunction() to see the result for the given test cases. I'm using VC6 to compile the ProjectA stuff and the test program is compiled in Visual Studio 2013.

  • I have included all header files as VC++ includes
  • I included the debug lib folder as linker addition.

Edit: As mentioned in the comments, i guess it might not be possible to use library compiled in VC6 to VC2013.

warcraft
  • 11
  • 2
  • *I included the debug lib folder as linker addition* well you also need to add the actual *library* as linker input, not just point it to the directory where it can find that library – stijn Aug 11 '17 at 18:40
  • Yeah i'm sorry about that, but yes i did add the .lib i needed – warcraft Aug 11 '17 at 18:46
  • You can't take a library compiled with VC6 and expect it work with VS2013. You need to build both ProjectA and testProject with the same compiler version. – 1201ProgramAlarm Aug 11 '17 at 18:49

0 Answers0