News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Problem Running Program w/file dependency in C::B

Started by tsl, August 24, 2008, 06:37:59 AM

Previous topic - Next topic

tsl

Hi everyone,

So I'm working on a program that uses SDL.  SDL reads a file called terminal.bmp at the start of run-time.  When I run the program though my OS, it works fine.  However, when I run it through C::B, I get an error stating that SDL cannot find terminal.bmp.  This is bad, since it means that I can't run the debugger at all.  What should I do to resolve this?  Thanks in advance.

Oh, and I'm running C::B Version 8.02 on Windows XP, running MinGW 5.1.3

MortenMacFly

Quote from: tsl on August 24, 2008, 06:37:59 AM
I get an error stating that SDL cannot find terminal.bmp.
Go to your project properties, tab "build targets" and set the "Execution working dir" to where the bitmap and the exe is...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

tsl

Huh, weird.  Thought I had that settled out.  Thanks very much, sir!