What are additional configurations required in compilations and linking to successfully compile the c++98 codes using C++11/gnu+11 standard?
Existing gcc version is g++ (GCC) 4.8.5 20150623 on RHEL7 OS.
In order to use C++11 standard on the existing code written in C++98, flag -std=c++11
was added along with -D_GLIBCXX_USE_CXX11_ABI=0
.
While compiling existing code, the following error is still thrown:
undefined reference to `__cxa_throw_bad_array_new_length'
collect2: error: ld returned 1 exit status
Please, help on this issue.