C++ Extern Class Declaration

后端 未结 3 1538
有刺的猬
有刺的猬 2020-12-10 17:59

Edit: Ok I wrote a little test program to show here. Here is the Source Code.

main.cpp:

#include \"core.h\"

Core core;

int main()
{
  core.coreFunc         


        
3条回答
  •  天命终不由人
    2020-12-10 18:45

    I think I found your problem. In the definition header file the "Core" class is declared as "core". Remember, caps makes a big difference.

提交回复
热议问题