[Lazarus] Gtk2 compilation error on SPARC

AlexeyT aaa5500 at ya.ru
Fri Jan 3 20:14:11 CET 2020


When I compile CudaText for Solaris SPARC (32bit CPU as IDE GoTo shows 
me blocks with "ifdef cpu32") I get compile error, gtk2widgetset.inc

   // clipboard
   ClipboardTypeAtoms[ctPrimarySelection]:=GDK_SELECTION_PRIMARY;
ClipboardTypeAtoms[ctSecondarySelection]:=GDK_SELECTION_SECONDARY;
ClipboardTypeAtoms[ctClipboard]:=gdk_atom_intern('CLIPBOARD',GdkFalse); 
///==> gtk2widgetset.inc(1473,36) Error: Incompatible types: got 
"PGdkAtom" expected "LongWord"

IDE shows that both sides (array and gdk_atom_intern) are TGdkAtom - hmm.

Lazarus trunk from today.

user at PC:~/fpcupdeluxe/fpc/bin/x86_64-linux$ ./fpc
Free Pascal Compiler version 3.3.1-r43462 [2019/11/14] for x86_64

-- 
Regards,
Alexey



More information about the lazarus mailing list