Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using c++ string and iostream library when developing WinDbg extension.

24 views
Skip to first unread message

Ferad Zyulkyarov

unread,
Jan 3, 2009, 12:58:57 PM1/3/09
to
Hi, I am developing one simple extension for WinDbg. In one of my
classes I wanted to use the string c++ class but the build failed
because the the <string> header was not found and the std namespace
was not found.

The error messages

error C1083: Cannot open include file: 'string' No such file or
directory
error C2871: 'std' : a namespace with this name does not exist

I use the WDK tool set to build the extension as suggested at Building
DbgEng Extensions at msdn page.

I wonder is there a way to use c++ string class, and also the iostream
library when developing WinDbg extension (DbgEng or EngExtCpp).

Thanks,
Ferad

mht

unread,
Jan 4, 2009, 7:37:00 AM1/4/09
to

I'm able to use the string successfully in my windbg extension.
plz chk if you have done following:
#include <string>
using namespace std;

Ferad Zyulkyarov

unread,
Jan 4, 2009, 11:49:49 AM1/4/09
to

>
> I'm able to use the string successfully in my windbg extension.
> plz chk if you have done following:
> #include <string>
> using namespace std;

Hi,

I do have

#include <string>
using namespace std;

But this results to the following error
- error C1083: Cannot open include file: 'string' No such file or
directory

When I delete #include <string> and leave just "using namespace std;"
I get the following error:
- error C2871: 'std' : a namespace with this name does not exist

I guess there is something wrong with the include paths. Could it be?

Thanks

Alon

unread,
Jan 5, 2009, 7:50:03 AM1/5/09
to
Did you try adding to Sources file the following line(s):

USE_STL=1

USE_NATIVE_EH=1
USE_MSVCRT=1

Ferad Zyulkyarov

unread,
Jan 7, 2009, 6:44:36 AM1/7/09
to

> Did you try adding to Sources file the following line(s):
>
> USE_STL=1
>
> USE_NATIVE_EH=1
> USE_MSVCRT=1
>

Thanks, that worked!

0 new messages