[GAP] JEWL and GNAT GPL 2006

Sergio Gomez sergio.gomez at urv.cat
Tue Dec 19 22:05:50 CET 2006


Dear John,

I had the same problem, and I found the solution
thanks to AdaCore support. It is quite simple:

In file
  jewl-win32_interface.adb
change
  pragma Linker_Options ("-luser32 -lgdi32 -lcomdlg32 -lwinmm");
by
  pragma Linker_Options ("-luser32");
  pragma Linker_Options ("-lgdi32");
  pragma Linker_Options ("-lcomdlg32");
  pragma Linker_Options ("-lwinmm");

Best regards,

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 John
> McCormick
> Enviado el: martes, 19 de diciembre de 2006 21:28
> Para: GNAT Academic Program discussion list
> Asunto: [GAP] JEWL and GNAT GPL 2006
> 
> Next semester I am teaching a course in concurrent programming.  When I
> taught this course last (in 2000), I found John English's Window Library
> (JEWL) to be the perfect tool for I/O in my examples and
> assignments.   Today I downloaded and installed the latest version of JEWL
> on my Windows XP machine.  I attempted to build and run one of the
> examples.  I am unable to get a successful link.   Below is a copy of my
> attempt to make the pong example - it looks that I am missing some
> files.  Has anyone had success using JEWL with GNAT GPL 2006?
> 
> A bit of good Ada news.  This Fall the University of Northern Iowa will
> return to using Ada in our CS1 and CS2 courses!  Faculty voted
> overwhelmingly to replace Java in these two courses.
> 
> John
> 
> 
> $set ADA_INCLUDE_PATH=C:\Documents and Settings\mccormick\My
> Documents\JEWL\source
> 
> $set ADA_OBJECTS_PATH=C:\Documents and Settings\mccormick\My
> Documents\JEWL\source
> 
> $gnatmake pong.adb
> gcc -c pong.adb
> gnatbind -x pong.ali
> gnatlink pong.ali
> C:\GNAT\GPL_2006\bin\..\libexec\gcc\pentium-mingw32msv\3.4.6\ld.exe:
> cannot
> find -luser32 -lgdi32 -lcomdlg32 -lwinmm
> gnatlink: cannot call C:\GNAT\GPL_2006\bin\gcc.exe
> gnatmake: *** link failed.
> 
> $
> 
> 
> John W. McCormick                mccormick at cs.uni.edu
> Computer Science Department
> University of Northern Iowa        voice (319) 273-6056
> Cedar Falls, IA 50614-0507       fax (319) 273-7123
> http://www.cs.uni.edu/~mccormic/
> 
> 
> _______________________________________________
> 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