Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: tsl on August 24, 2008, 06:37:59 am

Title: Problem Running Program w/file dependency in C::B
Post by: tsl on August 24, 2008, 06:37:59 am
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
Title: Re: Problem Running Program w/file dependency in C::B
Post by: MortenMacFly on August 24, 2008, 09:28:19 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...
Title: Re: Problem Running Program w/file dependency in C::B
Post by: tsl on August 25, 2008, 07:05:19 am
Huh, weird.  Thought I had that settled out.  Thanks very much, sir!