Reputation: 41
My linux executable works fine when I run it directly or using gdb
but when I'm using codelite, at this statement
fp = fopen("../../../../../data/data.csv", "r");
it returns NULL for fp, looks like CodeLite cannot figure out where the file is,
Do I need to set some kind of an environmental variable ?
Upvotes: 0
Views: 361
Reputation: 41
Just set the working directory to the same directory where you have the executable
Upvotes: 1