samedi 22 décembre 2018

Error when running executable after the code correctly compiled in C++11

I have a long C++ code that used to work 2 years ago and now I want to use it again with some slight modification. The code compiles without issues, however, upon running the executable, which should output a file with some numerical data, I get the following error

libc++abi.dylib: terminating with uncaught exception of type
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > 
Abort trap: 6

I don't think the problem is with the code itself, but with some compiling option on my computer. I'm using OSX 10.13.6 and I'm simply compiling using

g++ -std=c++11 <filename> -o <executable_name>

The code is long and it basically just makes some calculations and then outputs a .dat file, I wouldn't know what portion of the code to include because the error doesn't tell me anything useful. If someone could guide me to what's the problem it would be very helpful.

Aucun commentaire:

Enregistrer un commentaire