[GAP] Binding Problem with GNAT

Sergio Gomez sergio.gomez at urv.cat
Thu Nov 8 00:49:09 CET 2007


> The error message, on calling gnatlink.exe is:
> 
>    c:\gnat\2007\libexec\gcc\pentium-mingw32msv\4.1.3\ld.exe:
>                cannot find -luser32   -lgdi32   -lcomdlg32   -lwinnmm
> 
>    collect 2:  ID returned 1 exit status
>    gnatlink: error when calling c:\gnat\2007\bin\gcc.exe
>    gnatmake: *** link failed
>    Done: error detected

The solution to fix this binding problem with JEWL consists in
the replacement of

  pragma Linker_Options ("-luser32 -lgdi32 -lcomdlg32 -lwinmm");

with

  pragma Linker_Options ("-luser32");
  pragma Linker_Options ("-lgdi32");
  pragma Linker_Options ("-lcomdlg32");
  pragma Linker_Options ("-lwinmm");

in the file jewl-win32_interface.adb.

Alternatively, you may download a fixed version of JEWL from
my web page:

  http://deim.urv.cat/~sgomez/ada/#Jewl

Sergio.

--------------------------------------------------------  /\  ---  /| -
Dr. Sergio Gomez                              |           \ \       |
Dept. d'Enginyeria Informàtica i Matemàtiques |          \ \/    /  |/
Universitat Rovira i Virgili                  |        /  \      \/
Campus Sescelades                             |        \/\     |\ \/
Avinguda dels Països Catalans, 26             |      /\ \/    _| \
E-43007 Tarragona (Spain)                     |      \/_      \
----------------------------------------------|    /  \     /\ \
Tel: +34 977 55 8508   Fax: +34 977 55 9710   |    \/       \ \
e-mail: sergio.gomez at urv.cat                  |  /  \/    /  \/
http://deim.urv.cat/~sgomez                   |  \/\      \/\
------------------------------------------------   /  ---  \/  --------
 
> -----Mensaje original-----
> De: gap-bounces at gnat.info [mailto:gap-bounces at gnat.info] En nombre de
> Riehle, Richard (CIV)
> Enviado el: miércoles, 07 de noviembre de 2007 21:39
> Para: GNAT Academic Program discussion list
> Asunto: Re: [GAP] Binding Problem with GNAT
> 
> 
> Subject:  Binding GNAT using JEWL and AdaGide
> 
> To:       Anyone using GNAT
> 
> From:     Richard Riehle
> 
> Date:     7 November 2007
> 
> 
> Using AdaGide v 7.420003, I am trying to compile and Link some of the
> John English JEWL programs.
> 
> There was a time, with earlier versions of GNAT, that these would
> compile
> and link just fine with AdaGide.
> 
> The error message, on calling gnatlink.exe is:
> 
>    c:\gnat\2007\libexec\gcc\pentium-mingw32msv\4.1.3\ld.exe:
>                cannot find -luser32   -lgdi32   -lcomdlg32   -lwinnmm
> 
>    collect 2:  ID returned 1 exit status
>    gnatlink: error when calling c:\gnat\2007\bin\gcc.exe
>    gnatmake: *** link failed
>    Done: error detected
> 
> We use AdaGide in our curriculum because it is so much easier for an
> academic environment than GPL, so we'd like to continue with it.
> Also, JEWL has proven to be one of the most valuable tools for
> making Ada attractive to our students.
> 
> Is there a fix for this problem?
> 
> 
> Richard Riehle
> Computer Science Department
> Naval Postgraduate School
> Monterey, CA
> 7 November 2007
> _______________________________________________
> GAP mailing list
> GAP at gnat.info
> /no-more-mailman.html
> To unsubscribe from this list, please contact the GAP GNAT Tracker
> administrator
> within your organization.




More information about the GAP mailing list