> Hello,
> i creates a program and compile it using the
> xlC -o ./../hello -g hello.cpp
> when i tryed to debug it i went into the directory where hello is
> created and
> type:
> ddd hello
> but the ddd could not open my source file , i try to used with open
> source with no success .
> do i miss somthing ,
> should i set any flags to the ddd or in the enviroment ?
You can:
1) Use full path to name source files when compiling , so that ddd (in
fact the underlying de* - in your case must be dbx) can find its
way to the source files.
(I don't remeber if there is an option in to force xlC to use full
pathnames automatically.)
2) At ddd prompt (which is in fact dbx prompt), use "use" command to set
search directory for source files (See syntax below)
(dbx) help use
use
use <directory-list>
Set the list of directories to be searched when looking
for source files. If no argument is specified, the current
list if directories to be searched is displayed.
3) If compiling the way you did, put source file in the executable
directory (which is not a very nice solution...)
And remember you always have the de* online help at ddd prompt
(just type "help")...
Christian