Re: [Gtk2forpascal-devel] Examples doesn't work at all!
Brought to you by:
mgaertner
From: Mattias G. <nc-...@ne...> - 2002-07-30 14:31:20
|
On Tue, 30 Jul 2002 21:58:56 +0800 (CST) "mili" <mil...@16...> wrote: > Hello, Every one > > I downloaded the latest .tgz file from sourceforge.net > (gtk2forpascal-0.4.tgz). I ran the script > "compile_with_fpc_under_linux.sh" under redhat 7.3 with a > freepascal 1.0.6, and the compilation is successful. Then I enter > the path "examples" and ran "make_examples.sh". When I tried to run > any created executables, I get the following errors: > > >>>>>>> > specified class size for type `GParamChar' isspecified class size > for type `GParamChar' is smaller than the parent type's `GParam' > class size > [...] This is a known problem with the linking order. It seems, that the gtk2 needs a special linking order. But there is no nice option to tell the compiler. You can use the script examples/gtk+/demo/compile_with_fpc_under_linux.sh, which compiles and links manually. For example: cd examples/gtk+/demo/ ./compile_with_fpc_under_linux.sh gtk_demo.pas You can use this script to compile any example. Meanwhile we are searching for a better solution. > I am confused by the errors. Can anybody help me to solve the > problems and make the gtk2forpascal work well? Actually, I have > been waiting for such an interface for quite a long time. I like > it. BTW, my free pascal is version 1.0.6-beta [2002/04/30] for > i386. I suggest to upgrade. The beta contains some errors. Mattias |