I have a program that compiles and runs fine under Win XP.
(using DevC++ beta 5).
I've compiled the same program under Linux (Debian Lenny) and Mac OS X 10.5.8.
(Using Eclipse). However when I try to run it from the command line I get this error:
terminate called after throwing an instance of 'std::out of range' what(): basic_string::s ubstr
When I try debugging from eclipse I get the error.
When I try gdb from the command line the error does not occur.
The program is part of a homework assignment (which is why at this moment I've chosen not to post any code), but this particular problem has nothing to do with the assignment.
Could this be a problem with locale settings? Where should I look next?
(using DevC++ beta 5).
I've compiled the same program under Linux (Debian Lenny) and Mac OS X 10.5.8.
(Using Eclipse). However when I try to run it from the command line I get this error:
terminate called after throwing an instance of 'std::out of range' what(): basic_string::s ubstr
When I try debugging from eclipse I get the error.
When I try gdb from the command line the error does not occur.
The program is part of a homework assignment (which is why at this moment I've chosen not to post any code), but this particular problem has nothing to do with the assignment.
Could this be a problem with locale settings? Where should I look next?
Comment