I am using C++ and using the G++ compiler to compile my game. It compiles fine, but I’m linking to images, and they aren’t showing up in-game. I tried using local links and full links but I couldn’t get either one to work. Is there a special way to link to a file in Linux?
Code Example:
StatBack.load_image("\\Dropbox\\Pirate_Entertainment\\images\\hud_thumbnails\\backdrop.png");
StatBack.apply_image_surface(nCurrentX - 180,nCurrentY-230,0);
StatBack.v_DeleteImages();
Unless you are using some kind of portability wrapper which transforms your backslashes to forward slashes, you probably want to use forward slashes:
or, more likely, using a relative path: