Author Topic: Problem Running Program w/file dependency in C::B  (Read 2186 times)

Offline tsl

  • Single posting newcomer
  • *
  • Posts: 3
Problem Running Program w/file dependency in C::B
« 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9613
Re: Problem Running Program w/file dependency in C::B
« Reply #1 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...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline tsl

  • Single posting newcomer
  • *
  • Posts: 3
Re: Problem Running Program w/file dependency in C::B
« Reply #2 on: August 25, 2008, 07:05:19 am »
Huh, weird.  Thought I had that settled out.  Thanks very much, sir!