Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] Cannot resolve method

Solved installing a newer version of GDB.


dperez wrote:
> 
> I'm new in CDT.
> I'm testing it under Eclipse 3.2, Windows and MinGW.
> Compiling and running is ok.
> 
> When I debug this simple program:
> 
> #include <windows.h>
> #include <string>
> 
> using namespace std;
> 
> int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
> lpCmdLine, int nCmdShow) {
> 	string msj = "Hola ";
> 	MessageBox(0, msj.c_str(), "prueba", 0);
> 	return 0;
> }
> 
> and put a breakpoint in the MessageBox function call, I cannot evaluate
> expressions as simple as:
>    msj.length()
> this is the error message I receive:
>    Cannot resolve method string::length to any overloaded instance
> 
> Maybe this is a limitation from GDB instead of CDT.
> 

-- 
View this message in context: http://www.nabble.com/Cannot-resolve-method-tf2636604.html#a7380426
Sent from the Eclipse CDT - debug mailing list archive at Nabble.com.



Back to the top