[gtkada] Compatibility GtkAda 1.x <-> 2.0]

Stéphane Rivière stephane at rochebrune.org
Mon Feb 3 18:12:25 CET 2003


Hi again Arno, and all..

>Great, someone who read the docs, I'm impressed :-)

I read the docs because _I know_ i'm dumb.
I'm impressed too by one of the fastest answer-with-patch I ever seen
(less than 8 minutes).

>What you're missing is the use of the -mms-bitfields switch when compiling
>C files (in particular misc.c).
>
>I've updated the file INSTALL in CVS as follows:

Some problems :

1)  --host=i686-windows-mingw32 is mandatory here (gcc 3-2 +
gnatgcc 3-3 + msys 1.01 + snapshot GtkAda)

My command line is : ./configure --prefix=<install_dir>
--host=i686-windows-mingw32


2) The most important, the CC redefine trick does not work here...

When compiling misc.c, the suggested flag does not appear
: cd lib-obj; gcc -c -g -O2 -Wall -Id:/gtk/include/gtk-2.0
-Id:/gtk/lib/gtk-2.0/include -Id:/gtk/include/atk-1.0
-Id:/gtk/include/pango-1.0 -Id:/gtk/include/glib-2.0
-Id:/gtk/lib/glib-2.0/include   -I..  ../misc.c

I have modified all the 'C related' makefile.in adding the 
-mms-bitfields flag, and then make a new install from an empty 
directory, but...

The result is the same, when launching testgtk :

raised PROGRAM_ERROR : glib-values.adb:163 explicit raise


3) FYI, when compiling misc.c, I obtain many warnings (-Wall is on in
the script)...

cd lib-obj; gcc -c -g -mms-bitfields -O2 -Wall -Id:/gtk/include/gtk-2.0
-Id:/gtk/lib/gtk-2.0/include -Id:/gtk/include/atk-1.0
-Id:/gtk/include/pango-1.0 -Id:/gtk/include/glib-2.0
-Id:/gtk/lib/glib-2.0/include   -I..  ../misc.c
../misc.c: In function `ada_gdk_event_get_width':
../misc.c:884: warning: suggest parentheses around + or - inside shift
../misc.c:893: warning: suggest parentheses around + or - inside shift
../misc.c: In function `ada_gdk_event_get_height':
../misc.c:899: warning: suggest parentheses around + or - inside shift
../misc.c:908: warning: suggest parentheses around + or - inside shift
../misc.c: In function `ada_gdk_event_get_button':
../misc.c:960: warning: suggest parentheses around + or - inside shift
../misc.c:972: warning: suggest parentheses around + or - inside shift
../misc.c: In function `ada_gdk_event_get_state':
../misc.c:978: warning: suggest parentheses around + or - inside shift
../misc.c:1000: warning: suggest parentheses around + or - inside shift
../misc.c: In function `ada_gdk_event_get_mode':
../misc.c:1022: warning: suggest parentheses around + or - inside shift
../misc.c:1032: warning: suggest parentheses around + or - inside shift
../misc.c: In function `ada_gdk_event_get_detail':
../misc.c:1038: warning: suggest parentheses around + or - inside shift
../misc.c:1048: warning: suggest parentheses around + or - inside shift
../misc.c: In function `ada_gdk_event_get_focus':
../misc.c:1054: warning: suggest parentheses around + or - inside shift
../misc.c:1064: warning: suggest parentheses around + or - inside shift
../misc.c: In function `ada_gdk_event_get_area':
../misc.c:1097: warning: suggest parentheses around + or - inside shift
../misc.c: In function `ada_gdk_event_get_count':
../misc.c:1104: warning: suggest parentheses around + or - inside shift
../misc.c:1108: warning: suggest parentheses around + or - inside shift
../misc.c: In function `ada_gdk_event_get_in':
../misc.c:1114: warning: suggest parentheses around + or - inside shift
../misc.c:1118: warning: suggest parentheses around + or - inside shift
../misc.c: In function `ada_gdk_event_get_is_hint':
../misc.c:1124: warning: suggest parentheses around + or - inside shift
../misc.c:1128: warning: suggest parentheses around + or - inside shift
../misc.c: In function `ada_gdk_event_get_key_val':
../misc.c:1134: warning: suggest parentheses around + or - inside shift
../misc.c:1144: warning: suggest parentheses around + or - inside shift
../misc.c: In function `ada_gdk_event_get_property_state':
../misc.c:1166: warning: suggest parentheses around + or - inside shift
../misc.c:1170: warning: suggest parentheses around + or - inside shift
../misc.c: In function `ada_gdk_event_get_visibility_state':
../misc.c:1176: warning: suggest parentheses around + or - inside shift
../misc.c:1180: warning: suggest parentheses around + or - inside shift
../misc.c: In function `ada_gdk_event_get_requestor':
../misc.c:1216: warning: suggest parentheses around + or - inside shift
../misc.c:1220: warning: suggest parentheses around + or - inside shift
../misc.c: In function `ada_box_get_child':
../misc.c:2468: warning: comparison between signed and unsigned


Regards from Oleron Island

Stephane Riviere





-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: file:///C|/DOCUME%7E1/ADMINI%7E1/LOCALS%7E1/TEMP/nsmail-1.txt
Url: /pipermail/gtkada/attachments/20030203/eb057e8b/attachment.txt 


More information about the gtkada mailing list