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,bb3c718a1fb5b85c X-Google-Attributes: gid103376,public From: Jonas Nygren Subject: Re: GNAT for NT Linking Problem Date: 1996/09/09 Message-ID: <3234724E.251E@joy.ericsson.se>#1/1 X-Deja-AN: 179514861 references: <32342D50.1E1C@planet8.eag.unisysgsg.com> content-type: text/plain; charset=us-ascii organization: Ericsson mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.0 (Win95; I) Date: 1996-09-09T00:00:00+00:00 List-Id: Matt O'Hara wrote: > > Gentlepeople - > > I'm in the process of porting a Solaris Ada program to the PC, using > GNAT 304a for Windows NT (freshly ftp'd and installed). This Ada program > uses the C libraries extensively (basic things, like fputc, fgetc, feof, > toupper, etc). > > All the Ada code compiles correctly, yet when I try to link I am getting > errors referencing some of these C libraries. For example, it cant find > things like toupper or feof, yet it (evidently, based on the lack of > error message) can find things like tolower and fputc. Considering that > these routines should come from the same sets of libraries, it seems odd > that the linker could find one thing but not the others. > > I had similar problems when I tried installing and using the GNAT 301a > compiler. > > Any ideas? Gnat uses some of the stdio routines to implement Ada file-io. Look in the 'adaincludes' directory for i-cstrea.ads and you find what is available via Gnat. If you need more you would have to include these interfaces yourself via some library or .obj file. > > -- > Matthew H. O'Hara > Principal S/W Engineer > Lockheed Martin Tactical Defense Systems, Eagan, MN > 612-456-3228 matthew.h.ohara@lmco.com