Am Sonntag, 28. Mai 2006 12:55 schrieb Burkhard Carstens: > lazarus 0.9.17 beta 9370M > There are loads of messages like these: > /home/bork/FreePascal/lazarus/lcl/interfaces/gtk2/ > gtk2wscustommemo.inc(153,29) Error: function header doesn't match the > forward declaration "class TGtk2WSCustomMemo.SetFont(const > TWinControl,const TFont)" > > in Gtk2WSStdCtrls.pp and others. > > This is because the declaration of most of the methodes changed to > "class function something" while the implementation still says > "function something". > > Is it safe to just add the "class" keyword to the implementations?
Ok, did it. Attached is the patch created with "svn diff lazarus" However, now I get: /usr/local/lib/fpc/2.1.1/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_CHOOSER_DEFAULT$$LONGWORD': gtk2.pas:(.text+0xb9b1): undefined reference to `_gtk_file_chooser_default_get_type' /usr/local/lib/fpc/2.1.1/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_CHOOSER_EMBED$$LONGWORD': gtk2.pas:(.text+0xba11): undefined reference to `_gtk_file_chooser_embed_get_type' /usr/local/lib/fpc/2.1.1/units/i386-linux/gtk2/gtk2.o: In function `GTK2_GTK_TYPE_FILE_CHOOSER_ENTRY$$LONGWORD': gtk2.pas:(.text+0xba91): undefined reference to `_gtk_file_chooser_entry_get_type' project1.lpr(17,1) Error: Error while linking I have absolutely no clue, what this is about .. A few weeks ago, gtk2 worked, so I think I installed all the necessary packages (Suse 10.0) Any hint? Burkhard
gtk2fix.gz
Description: GNU Zip compressed data
