C++ Linking error

前端 未结 2 1691
一生所求
一生所求 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.

提交回复
热议问题