You can get solutions with the least-squares method even if overdetermined systems (the number of equations is greater than the number of variables). It is written in C++. C++11 or later is required.