Ada X11 compilation -- help needed

cbaron

110001001011100101011
I'm trying to get X11 programs coded in Ada95 to compile. For this i made a small shell script called Xgnatmake :

Code:
#!/bin/tcsh

# Mise en place des variables d'environement
setenv ADA_OBJECTS_PATH /usr/local/Bindings/X11
setenv ADA_INCLUDE_PATH /usr/local/Bindings/X11

# Compilation
gnatmake -a/usr/local/Bindings/X11 $1 -largs \
-L/usr/local/Bindings/X11 -lAdaX11 -L/usr/X11R6/lib -lX11

Here is what I get when I try it :

Code:
%./Xgnatmake robosim
gcc -c -a/usr/local/Bindings/X11 gestion_terrain.adb
/var/tmp//ccgeaGaY.s:8581:FATAL:Symbol _gestion_terrain__generer_terrain__notre_random__reset$2 already defined.
gnatmake: "gestion_terrain.adb" compilation error
Segmentation fault

I don't want to rewrite the code in C, since we use Ada at University. If someone could help me, I'd be very, very happy.
 
Back
Top