I seem to get errors when trying to open an std::ifstream
if I use a relative path. Though it works fine if using an absolute path.
Is there something I need to add to the CMakeLists.txt? (I'm pretty new to using cmake) Or is it just a problem in CLion?
It's CLion. You have to set the Working Directory in your compilation options. (under run > edit configurations)
For example:
Because CLion works in an other directory on ubuntu under ~/.clion10/system/cmake/generated/[id_of_project]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With