From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1e11857ea4f39dd6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.germany.com!newsfeed.freenet.de!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder4.cambrium.nl!feed.tweaknews.nl!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Trig Function Linking Problems References: <1176755562.190964.167640@w1g2000hsg.googlegroups.com> <1176836058.776900.16840@b58g2000hsg.googlegroups.com> Date: Tue, 17 Apr 2007 22:50:09 +0200 Message-ID: <87abx667zy.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:XTzIV+CNvM2ydm+4xGGbR3FJLr0= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tele2 X-Trace: DXC=mkb@4SSEoTL9cRlTVX9C3N6`Y6aWje^YJX[VJ7^fM2gAm@[o=d]MiOM`4>Ko897OBLO0gTI6XcZ AJAskey writes: > Thanks again for the responses. I will give the suggestions a try. > > I did get the trig functions to work on one newer system. The ldd -v > trig command showed that libgnat was not being linked - for some > reason. I changed my build command to: > > gnatmake -v trig.adb -largs -lm -lc /usr/lib/libgnat-3.4.so.1 > > and it worked. I'm not sure why a simple gnatmake didn't link in the > libgnat library. It did on the older system and this led me to try to > explicitly link it. > > On the other system (the one I really need it to work on) it didn't > work. One reason may be that the libgnat-3.4.so.1 was not there - but > the libgnat-3.15a.so.1 file was. This is interesting as they appear > to be built from the same CD. I will try to get the newer libgnat > file onto that system. Currently, they are not on the same network. Ah yes - this is consistent with [1] and confirms that the Ada in GCC 3.2 is more or less broken. What version of GNAT does the newer system have? [1] http://www.ada-france.org/debian/debian-ada-policy.html#A-note-about-GNAT_0027s-shared-libraries -- Ludovic Brenta.