PDA

View Full Version : Problem using gdb



-A-
October 9th, 2010, 08:04 PM
I keep getting this error when I try to print the value of an element of a character array.Any clues as to why this happens?

Cannot perform pointer math on incomplete types, try casting to a known type, or void *.

Mach1723
October 10th, 2010, 01:08 AM
Your post doesn't give much information, perhaps post a copy/paste of the GDB session, and you say your trying to 'print' an element of a character array, it doesn't sound to me like its a char array if its saying that its an incomplete type, but without more information I dunno.