[GAP] Help with compilation of JEWL programs
Sergio Gomez
sergio.gomez at urv.cat
Wed Oct 18 11:53:11 CEST 2006
I have been using the combination
GNAT 3.15p + Win32Ada + JEWL (John English's Window Library)
for several years in my courses on Concurrent Programming,
but now, with the new compiler GNAT GPL 2006, I have not
succeeded in solving a compilation problem.
For instance, the calculator example which comes with JEWL,
gnatmake calculator.adb
generates:
gcc -c calculator.adb
gcc -c -I./ -I- c:\usrlocal\ada\jewl\source\jewl.adb
gcc -c -I./ -I- c:\usrlocal\ada\jewl\source\jewl-simple_windows.ads
gcc -c -I./ -I- c:\usrlocal\ada\jewl\source\jewl-windows.adb
gcc -c -I./ -I- c:\usrlocal\ada\jewl\source\jewl-canvas_implementation.adb
gcc -c -I./ -I- c:\usrlocal\ada\jewl\source\jewl-message_handling.adb
gcc -c -I./ -I- c:\usrlocal\ada\jewl\source\jewl-win32_interface.adb
gcc -c -I./ -I- c:\usrlocal\ada\jewl\source\jewl-window_implementation.adb
gnatbind -x calculator.ali
gnatlink calculator.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:\usrlocal\ada\gnat\gpl_2006\bin\gcc.exe
gnatmake: *** link failed.
The files libuser32.a, libgdi32.a, libcomdlg32.a and libwinmm.a
are installed in
C:\gnat\GPL_2006\lib\gcc\pentium-mingw32msv\3.4.6
I have tried "everything": add this folder to the PATH, ADA_INCLUDE_PATH
and ADA_OBJECTS_PATH environment variables, add also the win32ada source
files (*.ads, *.adb) to this variables, move all files to the compilation
folder, try with GPS and AdaGIDE, etc.
Do you know what's happening?
Thank you very much,
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 | \/\ \/\
------------------------------------------------ / --- \/ --------
More information about the GAP
mailing list