Re: multilanguage compilation

André Laurens <[email protected]> Thu, 17 Mar 2005 14:12:09 +0100
Newsgroups gmane.comp.ide.gps.user
Message-ID <[email protected]>
Alejandro R. Mosteo a écrit :
> This happened to me recently and it was because I hadn't enable 
> multilanguage build in the GPS preferences [Edit/Preferences/General]. 
> Isn't a per project setting, so I was equally puzzled as you.
OK I didn't enable this feature.
But as soon as it it enabled, compilation fails since no Ada source file 
is find outside the current directory (as shown in build output below).
Can it be related to gprmake (used in multilanguage build, not in 
'standard' build)?

AL

-----------------------------------------
gprmake -P/home/andre/nacelles/dev/materiel/moteurs/ada/cde_moteur.gpr 
cde_moteur.adb
gcc -c -O2 -g -Wall 
/home/andre/nacelles/dev/materiel/pc/c/input_output_pc.c -o 
input_output_pc.o
ar cr libcde_moteur.a
ranlib libcde_moteur.a
gnatmake cde_moteur.adb -P 
/home/andre/nacelles/dev/materiel/moteurs/ada/cde_moteur.gpr
gcc -c -P cde_moteur.adb
cde_moteur.adb:1:21: file "grandeurs_physiques.ads" not found
cde_moteur.adb:2:04: file "grandeurs_physiques.ads" not found
cde_moteur.adb:3:04: file "grandeurs_physiques.ads" not found
cde_moteur.adb:4:04: file "console_io.ads" not found
cde_moteur.adb:5:04: file "carte_io.ads" not found
cde_moteur.adb:6:04: file "carte_io.ads" not found
cde_moteur.adb:7:04: file "carte_io.ads" not found
gnatmake: "cde_moteur.adb" compilation error
gprmake: invocation of gnatmake failed

process exited with status 4
-----------------------------------------