Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!dkuug!daimi!rohde From: rohde@daimi.aau.dk (Thomas Rohde) Newsgroups: comp.sys.hp Subject: Problems compiling G++ 1.39.0 Message-ID: <1991May17.105844.22316@daimi.aau.dk> Date: 17 May 91 10:58:44 GMT Sender: rohde@daimi.aau.dk (Thomas Rohde) Organization: DAIMI: Computer Science Department, Aarhus University, Denmark Lines: 29 I have tried installing g++ v. 1.39.0 on out HP 9k320 systems (HP-UX 7.0) but with no success. I use the GNU assembler and linker in order to get GNU gdb to work. I use the following link command (No libg++ linking): /usr/local/lib/gnu/bin/ld -o t -L/usr/local/lib/gnu/libraries /usr/local/lib/gnu/libraries/crt0.o t.o /usr/local/lib/gnu/bin/gnulib -lc to link the program t. This results in a "Undefined symbol ___main". If I link with libg++ (with gnulib3.o support) I get: /usr/local/lib/gnu/libraries/libc.a(exit.o): Definition of symbol _exit (multiply defined) gnulib3.c:107 (../libg++-1.39.0/src/libg++.a(gnulib3.o)): Definition of symbol _exit (multiply defined) I suspect the problem lies in the many different start files: crt0.c newcrt0.c gnulib3.c etc. Are there any who have succeded in building a working g++ an libg++, and how did they do it? Thomas Rohde Computer Science Department Aarhus University Denmark