Подключаю файл ntdddisk.h (#include <ntdddisk.h>), в котором, в свою очередь содержится подключение файла ntddstor.h. При попытке собрать проект возникает куча ошибок, ссылающихся на файл ntddstor.h: в основном это error C2146, C2501.
Не сталкивался ли кто-нибудь с такой проблемой? В чем может быть причина? Оба файла сокпированы из DDK в проект и в проекте прописан соответсвующий путь к ним.
Ошибки при подключении ntddstor.h
Модераторы: Duncon, Hawk, Romeo, Eugie
Почитай MSDN на эти ошибки. Может быть, это что-то тебе подскажет:
Код: Выделить всё
[b]Compiler Error C2146[/b]
syntax error : missing 'token' before identifier 'identifier'
The compiler expected the given token to appear before the given identifier.
Tips
This error is usually preceeded by error C2065. The most typical cause of this error is a
typographical problem. For example:
void main(void)
{
intt x; //Syntax error: missing semicolon before 'x'
}
Код: Выделить всё
[b]Compiler Error C2501[/b]
'identifier' : missing storage-class or type specifiers
The identifier was declared without specifying its type.
Tips:
1. The most typical cause of this error is a typographical error. Recheck the identifier to
ensure it is spelled correctly and that the alphabetic case is correct.
2. This error may occur when a type specifier is omitted in the declaration of an identifier.
In the following example, assume the header file for the class CUndeclared has been
omitted:
class CMyClass {
private:
CUndeclared m_myClass; // Error: Class unknown
} ;