Autor Thema: Pascal FAIL  (Gelesen 2573 mal)

SYN-SYN/ACK-ACK

  • Beiträge: 6
    • Profil anzeigen
Gespeichert
« am: 02. May 2011, 19:56 »
Moin, ich hab folgendes Tutorial durchgearbeitet (Naja, den Code ge C&P'tet).
http://www.lowlevel.eu/wiki/Pascal

Unter meinem schönen Linuxrechner bekomme ich einen Fehler:

tom@linux-5uqb:~/Desktop/Cd/Pascal/code/OS> fpc kernel.pas
Free Pascal Compiler version 2.4.2 [2011/03/25] for i386
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Linux for i386
Compiling kernel.pas
kernel.pas(5,10) Fatal: Cannot find system type "HRESULT". Check if you use the correct run time library.
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
tom@linux-5uqb:~/Desktop/Cd/Pascal/code/OS>

kevin

  • Administrator
  • Beiträge: 2 767
    • Profil anzeigen
Gespeichert
« Antwort #1 am: 02. May 2011, 20:14 »
Schau mal hier: http://forum.lowlevel.eu/index.php?topic=2727.msg31793#msg31793

Der Artikel bezieht sich auf eine ältere FPC-Version. Mit einer neueren Version muss man noch ein paar Zeilen ergänzen.
Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end.

sfan

  • Beiträge: 94
    • Profil anzeigen
Gespeichert
« Antwort #2 am: 02. May 2011, 20:50 »
Eigentlich habe ich ja alles was für die neue Version nötig ist in den Artikel gepackt

EDIT: system.pas muss wie unten aussehen.
unit system;
 
interface
 
type hresult = longint;
procedure FPC_INITIALIZEUNITS; compilerproc;
procedure FPC_DO_EXIT; compilerproc;
 
implementation
 
procedure FPC_INITIALIZEUNITS; alias: 'FPC_INITIALIZEUNITS'; compilerproc;
begin
end;
 
procedure FPC_DO_EXIT; alias: 'FPC_DO_EXIT'; compilerproc;
begin
end;
 
end.
« Letzte Änderung: 30. April 2013, 23:01 von sfan »

SYN-SYN/ACK-ACK

  • Beiträge: 6
    • Profil anzeigen
Gespeichert
« Antwort #3 am: 03. May 2011, 16:38 »
Funzt, kann geschoßen werden.

kevin

  • Administrator
  • Beiträge: 2 767
    • Profil anzeigen
Gespeichert
« Antwort #4 am: 03. May 2011, 16:55 »
Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end.

 

Einloggen