From: aheijde on 30 Oct 2007 05:59 Hello, I am using the GNAT GPL 2007.1 version on a Vista machine. After this I installed the win32Ada 2007 bindings. When I tried to build the examples, I am getting al lot of warnings: gnatmake -PC:\GNAT\2007\share\examples\win32ada\gdi\gdidemo.gpr gdidemo -d gcc -c -O2 -I- -gnatA C:\GNAT\2007\share\examples\win32ada\gdi \gdidemo.adb gcc -c -O2 -I- -gnatA C:\GNAT\2007\share\examples\win32ada\gdi \init.adb gcc -c -O2 -I- -gnatA C:\GNAT\2007\share\examples\win32ada\gdi \bounce.adb bounce.adb:68:03: warning: possible aliasing problem for type "PBOUNCEDATA" bounce.adb:68:03: warning: use -fno-strict-aliasing switch for references bounce.adb:68:03: warning: or use "pragma No_Strict_Aliasing (PBOUNCEDATA);" bounce.adb:70:03: warning: possible aliasing problem for type "PBALLDATA" bounce.adb:70:03: warning: use -fno-strict-aliasing switch for references bounce.adb:70:03: warning: or use "pragma No_Strict_Aliasing (PBALLDATA);" gcc -c -O2 -I- -gnatA C:\GNAT\2007\share\examples\win32ada\gdi \convert.adb gcc -c -O2 -I- -gnatA C:\GNAT\2007\share\examples\win32ada\gdi \draw.adb draw.adb:44:03: warning: possible aliasing problem for type "PDRAWDATA" draw.adb:44:03: warning: use -fno-strict-aliasing switch for references draw.adb:44:03: warning: or use "pragma No_Strict_Aliasing (PDRAWDATA);" gcc -c -O2 -I- -gnatA C:\GNAT\2007\share\examples\win32ada\gdi \gdidemo_util.adb gcc -c -O2 -I- -gnatA C:\GNAT\2007\share\examples\win32ada\gdi \maze.adb maze.adb:38:03: warning: possible aliasing problem for type "PMAZEDATA" maze.adb:38:03: warning: use -fno-strict-aliasing switch for references maze.adb:38:03: warning: or use "pragma No_Strict_Aliasing (PMAZEDATA);" gcc -c -O2 -I- -gnatA C:\GNAT\2007\share\examples\win32ada\gdi \poly.adb poly.adb:43:03: warning: possible aliasing problem for type "PPOLYDATA" poly.adb:43:03: warning: use -fno-strict-aliasing switch for references poly.adb:43:03: warning: or use "pragma No_Strict_Aliasing (PPOLYDATA);" poly.adb:45:03: warning: possible aliasing problem for type "PBEZBUFFER" poly.adb:45:03: warning: use -fno-strict-aliasing switch for references poly.adb:45:03: warning: or use "pragma No_Strict_Aliasing (PBEZBUFFER);" poly.adb:47:03: warning: possible aliasing problem for type "ac_POINT_t" poly.adb:47:03: warning: use -fno-strict-aliasing switch for references poly.adb:47:03: warning: or use "pragma No_Strict_Aliasing (ac_POINT_t);" poly.adb:58:03: warning: possible aliasing problem for type "PBEZBUFFER_ARRAY" poly.adb:58:03: warning: use -fno-strict-aliasing switch for references poly.adb:58:03: warning: or use "pragma No_Strict_Aliasing (PBEZBUFFER_ARRAY);" gcc -c -O2 -I- -gnatA C:\GNAT\2007\share\examples\win32ada\gdi \xform.adb xform.adb:51:03: warning: possible aliasing problem for type "PXFORMDATA" xform.adb:51:03: warning: use -fno-strict-aliasing switch for references xform.adb:51:03: warning: or use "pragma No_Strict_Aliasing (PXFORMDATA);" xform.adb:55:07: warning: possible aliasing problem for type "ac_POINT_t" xform.adb:55:07: warning: use -fno-strict-aliasing switch for references xform.adb:55:07: warning: or use "pragma No_Strict_Aliasing (ac_POINT_t);" gcc -c -O2 -I- -gnatA C:\GNAT\2007\share\examples\win32ada\gdi \wininfo.adb gcc -c -O2 -I- -gnatA C:\GNAT\2007\share\examples\win32ada\gdi \dialog.adb dialog.adb:36:03: warning: possible aliasing problem for type "PLOGPALETTE" dialog.adb:36:03: warning: use -fno-strict-aliasing switch for references dialog.adb:36:03: warning: or use "pragma No_Strict_Aliasing (PLOGPALETTE);" dialog.adb:100:07: warning: variable "null_rect" is read but never assigned dialog.adb:127:03: warning: variable "null_size" is read but never assigned dialog.adb:128:03: warning: variable "null_point" is read but never assigned gnatbind -I- -x c:\gnat\2007\share\examples\win32ada\gdi\gdidemo.ali gnatlink c:\gnat\2007\share\examples\win32ada\gdi\gdidemo.ali -Lc:\gnat \2007\lib\win32ada -lwin32ada -o c:\gnat\2007\share\examples\win32ada \gdi\gdidemo.exe c:\gnat\2007\lib\win32ada/libwin32ada.a(win32-winuser.o):win32- winuser.adb:(.text+0xccb): undefined reference to `do_varargs' c:\gnat\2007\lib\win32ada/libwin32ada.a(win32-winuser.o):win32- winuser.adb:(.text+0x127b): undefined reference to `do_varargs' gnatlink: error when calling C:\GNAT\2007\bin\gcc.exe gnatmake: *** link failed. process exited with status 4 Must I do something more before it will work? Or...??? How can I check that the automatic configuration worked well? And were is the help file of the win32 binding, could not find that either. Thanks in advance. Greetings Antoine
From: aheijde on 31 Oct 2007 06:46 I have found the problem, during the automatic coniguration of win32Ada there was a warning about missing stdio.h. Therefor I set an environment variable C_INCLUDE_PATH to C:\GNAT \2007\PENTIUM-MINGW32MSV\INCLUDE;C:\GNAT\2007\LIB\GCC\PENTIUM- MINGW32MSV\4.1.3 Now the building went good and I can build and run the win32Ada examples. PS don't forget to put %PATH% in the PATH environment, otherwise running the executables in an external window will not work. (missing cmd) PS I installed the GNAT GPL 2007.2 version now, but the problem is in both of them. Tonight I will reinstall the latest version on my XP machine to see if it is the same behaviour. Greetings Antoine
|
Pages: 1 Prev: GtkAda Tree_View properties Next: using jGRASP to compile Ada |