terminate called after throwing an instance of 'char*' Abort trap logout

closed account (yb0iE3v7)
Hi, I am receiving this error after pressing return when I execute the .exec file, but the code runs fine when I do it through the terminal with ./

Any way I can run it by clicking?

 
code removed


Thank you.
Last edited on
I don't really know what you mean, but I'd guess that the program is being run from different directories and the code is being terminated by:
 
if (!fin.good()) throw "I/O error";

It's your code you know, haven't you tried debugging it?
closed account (yb0iE3v7)
Yes, I have tried to. What I meant was that the program runs fine when I initiate it through the Terminal by using ./email but it gives me the title console message when I run it by clicking the exec program itself, and after pressing return. I'm taking my first college course on c++, and I have never gotten this console message before in my previous works. Thanks for any help on this.
Last edited on
Topic archived. No new replies allowed.