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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6cc079ad718119ff X-Google-Attributes: gid103376,public From: dweller@dfw.net (David Weller) Subject: Re: Calling Ada (GNAT) from C programs... Date: 1996/03/30 Message-ID: <4jkame$hr5@dfw.dfw.net>#1/1 X-Deja-AN: 145230767 references: <4jcb30$8kc@dfw.dfw.net> organization: DFWNet -- Public Internet Access newsgroups: comp.lang.ada Date: 1996-03-30T00:00:00+00:00 List-Id: In article , Gerd Moellmann wrote: > >> gnatbind -n greetings.ali is called, then the linkage command is >> ld main.o b_greetings.o greetings.o >> >> Which gives...[unresolved symbols] >You must link with the object files (*.o) for the library units that >are named in greetings.ali (system.o etc.). Actually, I originally tried that, but it generates a "ripple effect". The correct command, as Robert Dewar has pointed out, is to follow that gnatbind command above with gnatbl -linkonly greetings.ali main.o I've also been told this will change to gnatlink greetings.ali main.o with GNAT v3.04 -- Ancient man: Web apps? Java! OO stuff? Eiffel! "Real-time" stuff? C/C++! Modern man: Web apps? Ada 95! OO stuff? Ada 95! "Real-time" stuff? Ada 95! Not a revolution...but evolution. http://lglwww.epfl.ch/Ada