WDK 6000 Unable to open <string>

When I include the Standard C++ Library (#include ) the compiler cannot find this string class. Here is the error: fatal error C1083: Cannot open include file: ‘string’: No such file or directory.

I looked through the cl command line options but nothing is completely obvious. Saving time here by posting.

Thanks for any help.

xxxxx@aeshen.com wrote:

When I include the Standard C++ Library (#include ) the compiler cannot find this string class. Here is the error: fatal error C1083: Cannot open include file: ‘string’: No such file or directory.
>
> I looked through the cl command line options but nothing is completely obvious. Saving time here by posting.
>

Since drivers can’t use STL, it isn’t in the default include path. Just
add this to your sources file:
INCLUDES = $(CRT_INC_PATH)\stl70


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Thanks. I did give it a try and still had the issue.

I finally found documentation in the WDK help:
USE_STL
The USE_STL macro is only needed if you are using the STL package.

If you are using this package, you should add the following line to your sources file:

USE_STL=1

Otherwise you may encounter build errors that indicate that some file cannot be found (and the file name in question will have no extension).