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,3b52082d781913c7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-12 20:04:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp-server.caltech.edu!attla2!ip.att.net!attbi_feed3!attbi.com!rwcrnsc53.POSTED!not-for-mail From: "Jeffrey Creem" Newsgroups: comp.lang.ada References: Subject: Re: Gnat Compiling Sage-St Ada Code? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: <6Bcg9.88848$Jo.23579@rwcrnsc53> NNTP-Posting-Host: 66.31.5.146 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc53 1031886274 66.31.5.146 (Fri, 13 Sep 2002 03:04:34 GMT) NNTP-Posting-Date: Fri, 13 Sep 2002 03:04:34 GMT Organization: AT&T Broadband Date: Fri, 13 Sep 2002 03:04:34 GMT Xref: archiver1.google.com comp.lang.ada:28897 Date: 2002-09-13T03:04:34+00:00 List-Id: First, just to clarify any potential misconceptions, the GNAT compiler is a translator but only in that it translates Ada code to assembly language. There is no intermediate C code (intermediate representations do exist but not really in any way that is different than other compilers). If you are getting errors because it can't fine sage.ads you are WAY before the time you need to start worring about linking in dlls. I suggest reading the GNAT documentation. It sounds like you need some basic instruction in how to compile so GNAT knows which directories to look in for code (it can't guess!) (Hint -I is your friend, or look at the ADA_INCLUDE_PATH variable). Finally, I don't know if you will be able to get Sage code compiling with GNAT or not but at the moment, from what you describe I don't think you have even come close to trying enough to say either way. "NonStickSpam" wrote in message news:uo0aqusltrsb59@corp.supernews.com... > > I'm trying to compile some Ada Sage-St code with the Gnat compiler > (translator), and am having problems. I can compile a very simple ada > program that prints out text, etc.. so gnat works fine with that. I can > open Sage DFL's with the Sage tools, view the relations, and everything. > So, the Sage general tools work fine. > > The moment I try to compile Ada code using Sage, it gets very unhappy. If I > have a 10 line program with a simple "with Sage;" it dies looking for > sage.ads. I tried to link against the Sage DLL's, but without any success, > so finally I copied the SAGE.ADS code into the directory, but that blows up > in a big way trying to compile with GNAT. >