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=3.8 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID,RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b9c1989248a6cf47,start X-Google-Attributes: gid103376,public From: "Mark" Subject: Linking to c++ libraries problem Date: 1998/08/18 Message-ID: <01bdcb09$d79eba90$0f010180@nc84c>#1/1 X-Deja-AN: 382337884 X-NNTP-Posting-Host: lourow.demon.co.uk:212.228.41.146 X-Trace: news.demon.co.uk 903458611 nnrp-07:25854 NO-IDENT lourow.demon.co.uk:212.228.41.146 Newsgroups: comp.lang.ada X-Complaints-To: abuse@demon.net Date: 1998-08-18T00:00:00+00:00 List-Id: I am using the Gnat ada compiler to link an ada program with functions defined in c++ . libraries (Microsoft Visual c++ v5). The problem I am having is that the c++ libraries make use of C++ library functions (like printf) and when I link using the Gnat ada compiler I get undefined references to a host of things (like _imp__fprintf). The command line I am using is gnatlink main.adb I think that I want to add to this a library to resolve the missing declarations but I am not sure what the library is. Is this library available within gnat? If not can I use a library within Microsoft Visual c++ v5, if so which Any response via news group please.