[fpc-pascal] Gecko / Firefox / XPCOM

Henrik Genssen henrik.genssen at mediafactory.de
Thu May 21 22:34:52 CEST 2009


Hi,

I am trying to use the gecko libs from  http://sourceforge.net/projects/d-gecko
with lazarus.

i get the following errors:
Hint: Start of reading config file c:\lazarus\fpc\2.2.2\bin\i386-win32\fpc.cfg
Hint: End of reading config file c:\lazarus\fpc\2.2.2\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.2.2 [2008/10/05] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win32 for i386
Compiling project1.lpr
Compiling SimpleDownloadForm.pas
Compiling nsGeckoStrings.pas
Compiling nsInit.pas
nsInit.pas(55,15) Hint: Type "PLongBool" redefinition
nsInit.pas(104,1) Hint: C arrays are passed by reference
nsInit.pas(233,27) Hint: Type "PGREVersionRangeArray" redefinition
nsInit.pas(241,23) Hint: Type "PGREPropertyArray" redefinition
Compiling nsMemory.pas
nsMemory.pas(155,13) Warning: Some fields coming before "GetMem" weren't initialized
nsMemory.pas(157,17) Warning: Some fields coming before "ReallocMem" weren't initialized
nsMemory.pas(157,17) Error: Incompatible types: got "Realloc(Pointer, LongInt):^untyped" expected "<procedure variable type of function(var Pointer, LongInt):^untyped;Register>"
nsMemory.pas(165) Fatal: There were 1 errors compiling module, stopping

for the following costruct - stopping at the line ReallocMem:

const
  memmgr: TMemoryManager = (
    GetMem: Alloc;
    FreeMem: Free;
    ReallocMem: Realloc;
  );
procedure SetToMemoryManager;
begin
  SetMemoryManager(memmgr);
end;

how can that be done in FPC?

regards

Hinnack



More information about the fpc-pascal mailing list