Author Topic: build and run / run non pointing to the good repertories  (Read 2209 times)

Offline karistouf

  • Single posting newcomer
  • *
  • Posts: 2
build and run / run non pointing to the good repertories
« on: January 06, 2015, 02:44:45 pm »
Hello !
codeblocks 13.12 / gcc-ada-4.8.1-4-mingw32 / windows 7

i have a little problem with the IDE reguarding Compile&Run and Run from Code::Blocks.

this have to do with relativ path of files near the executable compiled.

Aka: i m writting a log file, that should be near of my executable. when doing Compil&Run, or Run the log file is written near the cbp file !
BUT, when running the executable out of codeblocks, everything works as expected, the log files is created near the executable

Accessing to read/write text file is the same problem. when using Build&run or Run, a file being in a folder near the exe is not readen nor written.

I didnt find where to setup this. As anybody an idea about whats going on ?

 

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: build and run / run non pointing to the good repertories
« Reply #1 on: January 06, 2015, 03:45:45 pm »
You can find the corresponding option here:
Project->Properties->Build Targets->Execution Working dir

greetings

Offline karistouf

  • Single posting newcomer
  • *
  • Posts: 2
Re: build and run / run non pointing to the good repertories
« Reply #2 on: January 06, 2015, 04:08:30 pm »
ah !!! thats it ! thanks a lot !!!!  ;D