News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Problem watching string with gdb

Started by Zlika, January 29, 2007, 05:13:02 PM

Previous topic - Next topic

Zlika

Hi all !
I use the last friday nightly build with GDB 5.2.1.
When I try to debug and watch a string variable, I've got this message (instead of the value of the string):

Cannot resolve method string::c_str() to any overloaded instance

Is it a known bug? I've searched the forum but I haven't found this kind of problem.

Zlika

stahta01

#1
Quote from: Zlika on January 29, 2007, 05:13:02 PM
Hi all !
I use the last friday nightly build with GDB 5.2.1.
Zlika

I think you need to use the GDB 6.x; They do NOT support 5.2.1 officially; and changes in the past month was said to break the working of GDB 5.x. So, if you must use GDB 5.x try a month old build. Note, I do NOT used gdb so take what I say with a grain of salt. But, I do read a lot of posts.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Zlika

Thank you for your answer.
It's indeed working with a 6.x version of GDB!

Zlika