how to change current working directory for dbx on unix
Category: UNIX-Unix Beginner
how to change current working directory for dbx on unix?
how to change current working directory for dbx on unix?
means i'll run pgm from one directory , but getcwd() should return path which i want to be, which is not d current dir
dbx
u can try cd .. thats shud work
else try using use
working directory.
in vc++ we can set the path in project =>swttings=>working directory.
what if we want 2 do same in unix.
i.e.
our source files are at diff location.
we have to copy executable to required diff location and run it.
make file
if u r trying to execute the file, u can use makefiles where u can define the paths of different files and corresponding executables to be formed.
