C++ Linking error

前端 未结 2 1690
一生所求
一生所求 2021-01-29 03:14

I have multiple classes connected by hxx header files and inheritance.This is all about OS simulation. I compiled them individually to see if i get any syntax errors but that wa

相关标签:
2条回答
  • 2021-01-29 03:48

    Compiling individually is a reasonable test for syntax errors, but there's no point in linking individually, things WILL be missing.

    So find the compiler option to compile without linking (Microsoft Visual C++: /c, g++: -c) and use it.

    0 讨论(0)
  • 2021-01-29 03:51

    This error is telling you that there's no definition for the method JobCreationFactory::createFiles -- so either you forgot to define that in any file anywhere, or the file defining it is not being linked along with osTester.cxx.o (which is the file that calls it).

    0 讨论(0)
提交回复
热议问题