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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9b1d37f5a56928f1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-05 10:35:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Calling Ada from C++ (MS Visual C++) Date: 05 Apr 2002 13:18:02 -0500 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3ab585c8.0204050030.3d94e692@posting.google.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1018031042 23883 128.183.220.71 (5 Apr 2002 18:24:02 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 5 Apr 2002 18:24:02 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:22159 Date: 2002-04-05T18:24:02+00:00 List-Id: julian_robbins@bigfoot.com (Julian Robbins) writes: > So, using GNAT I believe that I can include the 'adainit()' and > 'adafinal()' in the binding stage using 'gnatbind -n mathutil.ali'. > However, this seems to produce a .o file that I could then only use > with gnatlink to link the C++ objects and Ada objects together. This I > can not do - I need to use MS Visual Studio to link the final > executable, including any relevant Ada objects. You can link the .o file containing adafinal() and adainit() with your C++ code, same as any other Ada .o. -- -- Stephe