.cpp files are compiled and run successfully in VS2015 in win10 but are compiled unsuccessfully in Ubuntu 16.04 LTS system?

  1. There are 3 header files, 5 source files and a main source main file including main function of a C++ project file;

  2. This C++ project file can be compiled and run successfully in Visual Studio 2015 ;

  3. When transplant this C++ project file to Ubuntu 16.04 system, it is compiled unsuccessfully by g++;

  4. There are two kinds problems for this C++ project file which as follows: (1) no match for 'operator+' or 'operator-' (operand types are 'matrix' and 'matrix'); (2) invalid initializing of non-const reference of type 'matrix' from an rvalue of type 'matrix';