PRB: Error C2501 When Building Application Using Winldap.h

ID: Q201027


The information in this article applies to:


SYMPTOMS

When you are building an application that includes the file Winldap.h, the following error might occur:

error C2501: 'PCONTEXT' : missing decl-specifiers


CAUSE

The definition of PCONTEXT is conditionally compiled based on the definition of architecture preprocessor symbols, which indicate the type of the target computer. If no architecture symbol is defined, later references to PCONTEXT in the header files will fail.


RESOLUTION

Do one of the following to resolve this problem:

Additional query words: kbLDAP


Keywords          : kbnetwork kbADSI kbSDKPlatform 
Version           : winnt:2.0
Platform          : winnt 
Issue type        : kbprb 

Last Reviewed: March 24, 1999