User forums > Using Code::Blocks

build and run / run non pointing to the good repertories

(1/1)

karistouf:
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 ?

 

BlueHazzard:
You can find the corresponding option here:
Project->Properties->Build Targets->Execution Working dir

greetings

karistouf:
ah !!! thats it ! thanks a lot !!!!  ;D

Navigation

[0] Message Index

Go to full version