Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: karistouf on January 06, 2015, 02:44:45 pm

Title: build and run / run non pointing to the good repertories
Post by: karistouf 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 ?

 
Title: Re: build and run / run non pointing to the good repertories
Post by: BlueHazzard on January 06, 2015, 03:45:45 pm
You can find the corresponding option here:
Project->Properties->Build Targets->Execution Working dir

greetings
Title: Re: build and run / run non pointing to the good repertories
Post by: karistouf on January 06, 2015, 04:08:30 pm
ah !!! thats it ! thanks a lot !!!!  ;D