Also wenn ich folgenden Befehl starte:
Code:
c:\fpc\build\bin\i386-
win32\fpc.exe -Tnativent helloworld.pas
wobei das helloworld.pas genau das demo von der
freepascal-wiki mit folgenden Code:
Delphi-Quellcode:
program helloworld;
uses
// as WriteLn is not supported, yet, we need to
// use the functions provided by the kernel directly
NDK, NDKUtils;
var
ntstr: TNtUnicodeString;
interval: TLargeInteger;
begin
ShortStrToNtStr('Hello World!'#13#10, ntstr);
NtDisplayString(@ntstr);
FreeMem(ntstr.buffer);
// wait 3 seconds
interval.QuadPart := - 3000 * 10000;
NtDelayExecution(@interval);
end.
So kommt folgende Fehlermeldung
:
Code:
C:\FPC>c:\fpc\build\bin\i386-
win32\fpc.exe -Tnativent helloworld.pas
helloworld.pas(10,26) Error: Identifier not found "TLargeInteger"
helloworld.pas(10,26) Error: Error in type definition
helloworld.pas(17,12) Error: Illegal qualifier
helloworld.pas(18,3) Error: Wrong number of parameters specified for call to "Nt
DelayExecution"
helloworld.pas(19,4) Fatal: There were 4 errors compiling module, stopping
Fatal: Compilation aborted
Error: c:\fpc\build\bin\i386-
win32\ppc386.exe returned an error exitcode
C:\FPC>
sprich irgendwas funktioniert da nicht...
lg,
jus