I'm trying to make my own spritepacker by entering a directory path as a command-line argument. In this function, I've saved the directory to a std::string instance of SpritePacker(in a constructor) and initialized a path object with it. Then iterating through the directory and any jpg files are pushed into a std::vector.
The problem I'm having is if I pass the directory that the program files are in, it works fine, but if I pass in a different directory also containing jpg files, I get a CImgIOException. Is there anyone familiar with CImg who can help me out, thanks.