BlackBoard (http://www.black-board.net/index.php)
- Design, Programmierung & Entwicklung (http://www.black-board.net/board.php?boardid=55)
-- Programmieren (http://www.black-board.net/board.php?boardid=4)
--- C Probleme mit ntddk.h (http://www.black-board.net/thread.php?threadid=14548)


Geschrieben von scr!pTk!d am 06.11.2003 um 19:51:

  Probleme mit ntddk.h

Was mache ich falsch?
Hier eine kleine Kostprobe der Fehler, die bei der Verwendung mit Dev-Cpp auftreten:
Achja - ich habe mir das Win2000DDK-Paket von Microsoft runtergeladen.
code:
1:
2:
3:
4:
5:
6:
7:
8:
#include <ntdkk.h>

int main()
{
      return 0;
}


und hier das Resultat:
Zitat:

Compiler: Default compiler
Building Makefile: "C:\bsod\Makefile.win"
Führt make... aus
make.exe -f "C:\bsod\Makefile.win" all
gcc.exe -c bsod.c -o bsod.o -I"C:/DEV-CPP/include" In file included from C:/DEV-CPP/include/excpt.h:39,
from C:/DEV-CPP/include/ddk/ntddk.h:24, from bsod.c:1:
C:/DEV-CPP/include/windef.h:170: parse error before "WPARAM"C:/DEV-CPP/include/windef.h:170: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:171: parse error before "LPARAM"
C:/DEV-CPP/include/windef.h:171: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:172: parse error before "LRESULT"
C:/DEV-CPP/include/windef.h:172: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:195: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:195: warning: data definition has no type or storage classC:/DEV-CPP/include/windef.h:196: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:196: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:204: parse error before '*' token
C:/DEV-CPP/include/windef.h:204: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:205: parse error before '*' token
C:/DEV-CPP/include/windef.h:205: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:206: parse error before "HGLOBAL"
C:/DEV-CPP/include/windef.h:206: warning: data definition has no type or storage classC:/DEV-CPP/include/windef.h:207: parse error before "HLOCAL"
C:/DEV-CPP/include/windef.h:207: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:208: parse error before "GLOBALHANDLE"
C:/DEV-CPP/include/windef.h:208: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:209: parse error before "LOCALHANDLE"
C:/DEV-CPP/include/windef.h:209: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:234: warning: parameter names (without types) in function declarationC:/DEV-CPP/include/windef.h:234: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:235: parse error before '*' token
C:/DEV-CPP/include/windef.h:235: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:238: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:238: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:241: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:241: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:242: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:242: warning: data definition has no type or storage classC:/DEV-CPP/include/windef.h:245: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:245: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:248: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:248: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:250: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:250: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:251: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:251: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:252: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:252: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:254: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:254: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:256: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:256: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:258: warning: parameter names (without types) in function declarationC:/DEV-CPP/include/windef.h:258: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:260: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:260: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:261: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:261: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:262: parse error before "HMODULE"
C:/DEV-CPP/include/windef.h:262: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:264: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:264: warning: data definition has no type or storage classC:/DEV-CPP/include/windef.h:265: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:265: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:267: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:267: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:268: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:268: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:269: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:269: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:270: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:270: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:271: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:271: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:272: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:272: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:276: warning: parameter names (without types) in function declarationC:/DEV-CPP/include/windef.h:276: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:277: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/windef.h:277: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:283: parse error before "HCURSOR"
C:/DEV-CPP/include/windef.h:283: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:296: parse error before "LONG"
C:/DEV-CPP/include/windef.h:296: warning: no semicolon at end of struct or union
C:/DEV-CPP/include/windef.h:297: warning: data definition has no type or storage classC:/DEV-CPP/include/windef.h:298: parse error before "right"
C:/DEV-CPP/include/windef.h:298: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:299: parse error before "bottom"
C:/DEV-CPP/include/windef.h:299: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:300: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:302: parse error before '*' token
C:/DEV-CPP/include/windef.h:302: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:306: parse error before "LONG"
C:/DEV-CPP/include/windef.h:306: warning: no semicolon at end of struct or union
C:/DEV-CPP/include/windef.h:307: warning: data definition has no type or storage classC:/DEV-CPP/include/windef.h:308: parse error before "right"
C:/DEV-CPP/include/windef.h:308: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:309: parse error before "bottom"
C:/DEV-CPP/include/windef.h:309: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:310: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:312: parse error before '*' token
C:/DEV-CPP/include/windef.h:312: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:316: parse error before "LONG"
C:/DEV-CPP/include/windef.h:316: warning: no semicolon at end of struct or union
C:/DEV-CPP/include/windef.h:317: warning: data definition has no type or storage classC:/DEV-CPP/include/windef.h:318: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:322: parse error before "LONG"
C:/DEV-CPP/include/windef.h:322: warning: no semicolon at end of struct or union
C:/DEV-CPP/include/windef.h:323: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:324: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:328: parse error before "LONG"
C:/DEV-CPP/include/windef.h:328: warning: no semicolon at end of struct or union
C:/DEV-CPP/include/windef.h:329: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:330: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:332: parse error before "SIZEL"
C:/DEV-CPP/include/windef.h:332: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:333: parse error before '*' token
C:/DEV-CPP/include/windef.h:333: warning: data definition has no type or storage classC:/DEV-CPP/include/windef.h:338: parse error before "SHORT"
C:/DEV-CPP/include/windef.h:338: warning: no semicolon at end of struct or union
C:/DEV-CPP/include/windef.h:339: warning: data definition has no type or storage class
C:/DEV-CPP/include/windef.h:344: warning: data definition has no type or storage class
In file included from C:/DEV-CPP/include/ddk/ntddk.h:24,
from bsod.c:1:
C:/DEV-CPP/include/excpt.h:75: warning: `struct _CONTEXT' declared inside parameter list
C:/DEV-CPP/include/excpt.h:75: warning: its scope is only this definition or declaration, which is probably not what you want
C:/DEV-CPP/include/excpt.h:75: warning: `struct _EXCEPTION_RECORD' declared inside parameter listIn file included from C:/DEV-CPP/include/ntdef.h:28,
from C:/DEV-CPP/include/ddk/ntddk.h:25, from bsod.c:1:
C:/DEV-CPP/include/ctype.h:190: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/ctype.h:191: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/ctype.h:192: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/ctype.h:193: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/ctype.h:194: parse error before "wctype_t"
C:/DEV-CPP/include/ctype.h:195: parse error before "wctype_t"
C:/DEV-CPP/include/ctype.h:196: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/ctype.h:197: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/ctype.h:198: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/ctype.h:199: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/ctype.h:200: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/ctype.h:201: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/ctype.h:202: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/ctype.h:203: warning: parameter names (without types) in function declaration
C:/DEV-CPP/include/ctype.h:213: parse error before "wc"C:/DEV-CPP/include/ctype.h: In function `iswalnum':
C:/DEV-CPP/include/ctype.h:213: `wc' undeclared (first use in this function)
C:/DEV-CPP/include/ctype.h:213: (Each undeclared identifier is reported only once
C:/DEV-CPP/include/ctype.h:213: for each function it appears in.)
C:/DEV-CPP/include/ctype.h: At top level:
C:/DEV-CPP/include/ctype.h:214: parse error before "wc"
C:/DEV-CPP/include/ctype.h: In function `iswalpha':
C:/DEV-CPP/include/ctype.h:214: `wc' undeclared (first use in this function)C:/DEV-CPP/include/ctype.h: At top level:
C:/DEV-CPP/include/ctype.h:215: parse error before "wc"
C:/DEV-CPP/include/ctype.h: In function `iswascii':
C:/DEV-CPP/include/ctype.h:215: `wc' undeclared (first use in this function)
C:/DEV-CPP/include/ctype.h: At top level:
C:/DEV-CPP/include/ctype.h:216: parse error before "wc"
C:/DEV-CPP/include/ctype.h: In function `iswcntrl':C:/DEV-CPP/include/ctype.h:216: `wc' undeclared (first use in this function)
C:/DEV-CPP/include/ctype.h: At top level:
C:/DEV-CPP/include/ctype.h:217: parse error before "wc"
C:/DEV-CPP/include/ctype.h: In function `iswdigit':
C:/DEV-CPP/include/ctype.h:217: `wc' undeclared (first use in this function)
C:/DEV-CPP/include/ctype.h: At top level:C:/DEV-CPP/include/ctype.h:218: parse error before "wc"
C:/DEV-CPP/include/ctype.h: In function `iswgraph':
C:/DEV-CPP/include/ctype.h:218: `wc' undeclared (first use in this function)
C:/DEV-CPP/include/ctype.h: At top level:
C:/DEV-CPP/include/ctype.h:219: parse error before "wc"C:/DEV-CPP/include/ctype.h: In function `iswlower':
C:/DEV-CPP/include/ctype.h:219: `wc' undeclared (first use in this function)
C:/DEV-CPP/include/ctype.h: At top level:
C:/DEV-CPP/include/ctype.h:220: parse error before "wc"
C:/DEV-CPP/include/ctype.h: In function `iswprint':
C:/DEV-CPP/include/ctype.h:220: `wc' undeclared (first use in this function)
C:/DEV-CPP/include/ctype.h: At top level:
C:/DEV-CPP/include/ctype.h:221: parse error before "wc"
C:/DEV-CPP/include/ctype.h: In function `iswpunct':
C:/DEV-CPP/include/ctype.h:221: `wc' undeclared (first use in this function)
C:/DEV-CPP/include/ctype.h: At top level:
C:/DEV-CPP/include/ctype.h:222: parse error before "wc"
C:/DEV-CPP/include/ctype.h: In function `iswspace':
C:/DEV-CPP/include/ctype.h:222: `wc' undeclared (first use in this function)
C:/DEV-CPP/include/ctype.h: At top level:
C:/DEV-CPP/include/ctype.h:223: parse error before "wc"
C:/DEV-CPP/include/ctype.h: In function `iswupper':
C:/DEV-CPP/include/ctype.h:223: `wc' undeclared (first use in this function)
C:/DEV-CPP/include/ctype.h: At top level:
C:/DEV-CPP/include/ctype.h:224: parse error before "wc"
C:/DEV-CPP/include/ctype.h: In function `iswxdigit':
C:/DEV-CPP/include/ctype.h:224: `wc' undeclared (first use in this function)
In file included from C:/DEV-CPP/include/ddk/ntddk.h:25,
from bsod.c:1:
C:/DEV-CPP/include/ntdef.h:235:1: warning: "_cdecl" redefined
bsod.c:1:1: warning: this is the location of the previous definition
In file included from C:/DEV-CPP/include/ddk/ntddk.h:25,
from bsod.c:1:
C:/DEV-CPP/include/ntdef.h: At top level:
C:/DEV-CPP/include/ntdef.h:360: redefinition of `UCHAR'
C:/DEV-CPP/include/windef.h:47: `UCHAR' previously declared here
C:/DEV-CPP/include/ntdef.h:361: redefinition of `USHORT'
C:/DEV-CPP/include/windef.h:45: `USHORT' previously declared here
C:/DEV-CPP/include/ntdef.h:362: redefinition of `ULONG'
C:/DEV-CPP/include/windef.h:43: `ULONG' previously declared hereC:/DEV-CPP/include/ntdef.h:369: redefinition of `PUCHAR'
C:/DEV-CPP/include/windef.h:48: `PUCHAR' previously declared here
C:/DEV-CPP/include/ntdef.h:370: redefinition of `PUSHORT'
C:/DEV-CPP/include/windef.h:46: `PUSHORT' previously declared here
C:/DEV-CPP/include/ntdef.h:371: redefinition of `PULONG'
C:/DEV-CPP/include/windef.h:44: `PULONG' previously declared here
C:/DEV-CPP/include/ntdef.h:946:2: #error Must define a target architecture.
C:/DEV-CPP/include/ntdef.h:983: redefinition of `PSZ'
C:/DEV-CPP/include/windef.h:49: `PSZ' previously declared hereIn file included from bsod.c:1:
C:/DEV-CPP/include/ddk/ntddk.h:11429: redefinition of `PCALLBACK_OBJECT'C:/DEV-CPP/include/ddk/ntddk.h:82: `PCALLBACK_OBJECT' previously declared hereC:/DEV-CPP/include/ddk/ntddk.h:13302: warning: `struct _COMPRESSED_DATA_INFO' declared inside parameter listC:/DEV-CPP/include/ddk/ntddk.h:13317: warning: `struct _COMPRESSED_DATA_INFO' declared inside parameter listIn file included from bsod.c:1:
C:/DEV-CPP/include/ddk/ntddk.h: In function `IoGetRemainingStackSize':
C:/DEV-CPP/include/ddk/ntddk.h:15257: warning: function returns address of local variableC:/DEV-CPP/include/ddk/ntddk.h: At top level:
C:/DEV-CPP/include/ddk/ntddk.h:17338: warning: `struct _DEVICE_CONTROL_CONTEXT' declared inside parameter listC:/DEV-CPP/include/ddk/ntddk.h:17437: warning: `struct _LOADER_PARAMETER_BLOCK' declared inside parameter listgcc.exe bsod.o -o "Bsod.exe" -L"C:/DEV-CPP/lib" -mwindows bsod.o(.text+0xeb):
Ausführung beendet



Geschrieben von black1654 am 09.11.2003 um 02:35:

 

Sicher das diese Header Datei richtig?
Ich selbst habe davon noch nichts gelesen und die Fehlermeldungen müssten auch damit zusammen hängen, dass es Probs mit dieser Datei gibt...



Geschrieben von Black Star am 09.11.2003 um 03:27:

 

Vielleicht heisstdas Dingen ntddk statt ntdkk.

Einemal nach ntddk (mit doppel-d jeztzt) gegooglet, fragt der mich, ob das nicht ntddk heissen soll.

Und dann diese Sache hier:
http://os.inf.tu-dresden.de/pipermail/abs2003/2003/000096.html


Forensoftware: Burning Board 2.3.6, entwickelt von WoltLab GmbH