different relative pathes in debug and normal execution
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
In my program I read in external files using relative
filenames. When I push the "execute"-Button all
relative pathes are resolved correctly. When I push the
"debug"-button the relative pathes will NOT resolve
correctly.
foo
example.exe (output from build)
build
foo.dev
foo.layout
Makefile.win
data
Ni145A.pgm
...
source
example.cpp
In normal mode in "example.cpp" I use "data/Ni145A.pgm"
(relative to "foo/exampe.exe") and it works fine.
While debugging I have to use "../data/Ni145A.pgm" in
"example.cpp" (relative to "foo/build/foo.dev" or
"foo/source/example.cpp")
Is this intended or is it a bug? I don't like this feature.
Logged In: NO
To fix this "feature" I think it should be sufficient to
change the working directory during the debugging to the
same directory where "ExeOutput" (in the *.dev file) points to.