error MSB6006: “CL.exe” exited with code 2

后端 未结 9 1643
刺人心
刺人心 2020-12-31 04:42

I\'m writing with visual c++ and when I compile this error occures:

C:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\Platforms\\Win32\\Microsoft.Cpp.Wi         


        
9条回答
  •  被撕碎了的回忆
    2020-12-31 05:18

    I got the same error when I forgot the return statement in the following method:

    char SpiRAM::write_byte(int address, char data_byte)
    {
        assert(address >= 0);
        assert(address < SRAM_SIZE);
    
        _sram[address] = data_byte;
    
        return data_byte;
    }
    

提交回复
热议问题