Re: Dot notation in Ada 2005
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
.
Relevant Pages
- SPHIGS not installing
... gnu's "gcc" ... # The UNIX flag must be defined for UNIX implementations ... The first flag makes it safe to link ... ar rv $(TARGET) $ ... (comp.graphics.misc) - Re: load fails to load a .so file on Solaris/Sparc with Tcl 8.5Hi
... building standard Tcl extensions that when installed can be loaded. ... There shouldn't be references in an extension ... gcc -G foo.o -o foo.so ... The -G flag is meant to inform gcc to link the file (for Linux we use ... (comp.lang.tcl) - sphigs not installing on fedora
... gnu's "gcc" ... # The UNIX flag must be defined for UNIX implementations ... The first flag makes it safe to link ... ar rv $(TARGET) $ ... (Fedora) - sphigs not installing on fedora
... gnu's "gcc" ... # The UNIX flag must be defined for UNIX implementations ... The first flag makes it safe to link ... ar rv $(TARGET) $ ... (Fedora) - Re: load fails to load a .so file on Solaris/Sparc with Tcl 8.5Hi
... I am not sure why the -G flag is used for Solaris -- this was done before I started working on the ECLiPSe system, but I believe we used to use Sun's cc for Solaris, and so -G may have been used to allow compatibility with both gcc and cc. ... I was also surprised about the main symbol reference -- it is certainly not in my source code, nor is it in the .so files for other Unix platforms. ... (comp.lang.tcl) |
|