Unresolved external symbol C++

后端 未结 3 842
花落未央
花落未央 2020-12-21 10:39

I ahve a problem with a code below:

ProgrammSettings.h

#pragma once
static class ProgrammSettings
{
public:
    static int fd;
};
         


        
3条回答
  •  猫巷女王i
    2020-12-21 11:07

    You need to add the following line to the start of your cpp file

     int ProgrammSettings::fd;
    

提交回复
热议问题