Problem with GNAT GPL 2007.1 win32Ada bindings - ADA

This is a discussion on Problem with GNAT GPL 2007.1 win32Ada bindings - ADA ; 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 ...

+ Reply to Thread
Results 1 to 2 of 2

Problem with GNAT GPL 2007.1 win32Ada bindings

  1. Default Problem with GNAT GPL 2007.1 win32Ada bindings

    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


  2. Default Re: Problem with GNAT GPL 2007.1 win32Ada bindings

    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


+ Reply to Thread

Similar Threads

  1. System calls - GNAT library vs. direct bindings
    By Application Development in forum ADA
    Replies: 19
    Last Post: 06-02-2007, 12:35 AM
  2. gnat-gpl-2007: mlib-tgt problem
    By Application Development in forum ADA
    Replies: 3
    Last Post: 05-25-2007, 12:15 PM
  3. GNAT GPL 2007 Problems with generics
    By Application Development in forum ADA
    Replies: 1
    Last Post: 05-15-2007, 03:43 PM
  4. [AdaCore] GNAT GPL 2007 now available
    By Application Development in forum ADA
    Replies: 4
    Last Post: 05-12-2007, 01:15 PM
  5. GNAT GPL 2007 coming when?
    By Application Development in forum ADA
    Replies: 6
    Last Post: 05-11-2007, 04:31 AM