Author Topic: Running inside the IDE  (Read 3602 times)

Offline KodeNerd

  • Single posting newcomer
  • *
  • Posts: 3
Running inside the IDE
« on: August 18, 2008, 02:09:35 am »
I am currently running Code::Blocks and am developing a program that requires access to files. I am accessing these files relative to the working directory however the working directory is not the same directory as my executable when I run it from Code::Blocks. This gives me problems when I require debugging. Is there some way I can change back the working directory to the same as the executable (preferably through a Code::Blocks setting, though I am willing to edit something in my program to achieve the results I need). Thank you.

George Gough

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: Running inside the IDE
« Reply #1 on: August 18, 2008, 02:12:02 am »
Project / Properties / Build targets -> [your target] / Execution working dir.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline KodeNerd

  • Single posting newcomer
  • *
  • Posts: 3
Re: Running inside the IDE
« Reply #2 on: August 18, 2008, 02:14:46 am »
Thank you. I thought I set those.

George Gough