Re: Why can't GDB or DDD find my source code?
That was it! Thanks a lot.... it's so nice when something turns out to
be so simple!
> Do you even have an executable file called 'foo' there? The -o option
> should be immediately followed by the name (which, by your examples is
> either -g or -ggdb). Try compiling with:
>
> $ gcc -g -o foo foo.c
>
> Matthew
> Rich wrote:
> > I am compiling a C program like so....
> >
> > gcc -o -g foo foo.c
> >
> > alternatively....
> >
> > gcc -o -ggdb foo foo.c
> >
> > When I run gdb, I get "(no debugging symbols found)"
> >
> > When I run ddd, I get "GDB cannot find the source code of your program"
Reply to: