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,c5da9e5554794748,start X-Google-Attributes: gid103376,public From: Norbert Roeben Subject: Linking GNAT with C++ libraries ? Date: 1996/06/18 Message-ID: <31C6D5D1.41C6@essiris2.atlas.de>#1/1 X-Deja-AN: 160848416 content-type: text/plain; charset=us-ascii organization: STN Atlas Elektronik mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.01 (X11; I; IRIX 5.2 IP22) Date: 1996-06-18T00:00:00+00:00 List-Id: Hello, I've a problem with GNAT and G++ 2.7.1 . I tried to call a function from a C++ Library. Within the Library there are many static Objects which has to elaborated during process startup. When I try to link my Process with the command gnatbl -v -g -o necs_test necs_test.ali xdr_test.o ../IRIX5.3-G++/lib/libnecs.a -lg++ -lstdc++ I got the following Message from the linker : ......... collect2: ld returned 1 exit status /usr/bin/../lib/ld: Unresolved: __pure_virtual_called operator delete(void *) operator new(unsigned int) Does anybody has an idea, why the linker doesn't find those functions ? My Configuration : SGI INDIGO2 R4400 IRIX 5.3 GNAT Version 3.03 gcc-2.7.2 g++lib 2.7.1 Norbert -- +-----------------+----------------------+-------------------------------+ | Norbert Roeben | DEPARTMENT : ETS 52 | PHONE : (49) 421-4573695 | +-----------------+----------------------+-------------------------------+ | EMAIL : roeben@essiris2.atlas.de | +------------------------------------------------------------------------+ | STN ATLAS Elektronik Brueggeweg 54 28305 Bremen | +------------------------------------------------------------------------+