This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Get >incomplete type> when I try to display a variable
- From: ppmoore <polomora at gmail dot com>
- To: gdb at sources dot redhat dot com
- Date: Wed, 7 Mar 2007 10:52:00 -0800 (PST)
- Subject: Re: Get >incomplete type> when I try to display a variable
- References: <9355446.post@talk.nabble.com>
Sorry for waste of bandwidth.
Found it: compile with -ggdb option.
Paul
ppmoore wrote:
>
> Hello,
>
> I've been trying to debug a program, where the source files and the binary
> are in separate directories (the .h and .c files are in the same
> directory). I just copy all source files to the destination execution
> directory where the executable is located (the target machine is not on
> the same network as the development machine), and this works fine.
>
> I'm now debugging another section of code where the .c and the .h files
> are in separate directories. As before, I copy these across to the
> executable location. When I debug, I get the error <incomplete type> when
> I try to examine the contents of a structure or pointer to a structure. Is
> this because in the development enviromnent, the .h and .c files are in
> different directories?
>
> Can anyone help?
>
> Thanks,
> Paul
>
--
View this message in context: http://www.nabble.com/Get-%3Eincomplete-type%3E-when-I-try-to-display-a-variable-tf3362883.html#a9359526
Sent from the gdb - General mailing list archive at Nabble.com.