g++ compiler error: undefined reference to `std::__throw_bad_array_new_length()
I am building a program which implement kD-Tree and kNN by C++, the dataset using mnist. When I compiled the program using command:
g++ -o main main.cpp kDTree.cpp Dataset.o -I . -std=c++11