Re: Dot notation in Ada 2005



Martin Carlisle a écrit :

Your forgot the -gnat05 flag. See below:

C:\d\temp>gnatmake -g objs-ext_objs
gcc -c -g objs-ext_objs.adb
objs-ext_objs.adb:21:16: no selector "X" for type "New_Point" defined
at objs-ex
t_objs.ads:12
gnatmake: "objs-ext_objs.adb" compilation error

C:\d\temp>gnatmake -g -gnat05 objs-ext_objs
gcc -c -g -gnat05 objs-ext_objs.adb
gcc -c -g -gnat05 objs.ads

c:\d\temp>

--Martin Carlisle


Unfortunately not:

gnatmake -u -c -u -PD:/users/philippe/src/ada/tests/objs/objs_test.gpr objs-ext_objs.adb -d
gcc -c -gnat05 -I- -gnatA D:\users\philippe\src\ada\tests\objs\objs-ext_objs.adb
objs-ext_objs.adb:16:16: no selector "X" for type "New_Point" defined at objs-ext_objs.ads:9
gnatmake: "d:\users\philippe\src\ada\tests\objs\objs-ext_objs.adb" compilation error

What compiler do you use?

Philippe Tarroux
.



Relevant Pages