Article View: gnu.gcc.bug
Article #227g++ v 2.0 on a Sun SPARC 2 ( Sun OS v 4.1.1 )
From: sm
Date: Tue, 07 Apr 1992 18:23
Date: Tue, 07 Apr 1992 18:23
64 lines
2685 bytes
2685 bytes
Hi, gcc v 2.0 compiles 'C' src's just fine, but I'm a bit confused about g++. I'm using the gnu-ld distributed with binutils v 1.9. I named gnu-ld 'ld' and installed it in /usr/local/bin and linked this into /usr/local/lib/gcc/sparc-sun-sunos4.1.1/2.0. Do I need to use crt1+.o ? Here is the output from an attempt at compiling a C++ src : Reading specs from /usr/local/lib/gcc/sparc-sun-sunos4.1.1/2.0/specs gcc version 2.0 /usr/local/lib/gcc/sparc-sun-sunos4.1.1/2.0/cpp -lang-c++ -v -undef -D__GNUC__= 2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix __ -D__sparc -D__sun -D__unix /home/staff/ba/trains/ae.cc /usr/tmp/cca16782.cpp GNU CPP version 2.0 (sparc) /usr/local/lib/gcc/sparc-sun-sunos4.1.1/2.0/cc1plus /usr/tmp/cca16782.cpp -quie t -dumpbase ae.cc -version -o /usr/tmp/cca16782.s GNU C++ version 2.0 (sparc) compiled by GNU C version 2.0. as -o ae.o /usr/tmp/cca16782.s /usr/local/lib/gcc/sparc-sun-sunos4.1.1/2.0/ld -e start -dc -dp /usr/local/lib/ gcc/sparc-sun-sunos4.1.1/2.0/crt0.o -L/usr/local/lib/gcc/sparc-sun-sunos4.1.1/2. 0/ -L/usr/local/lib/gcc/ -L/usr/local/lib/ ae.o -lgcc -lc -lgcc crt1.c:45 (/usr/local/lib/gcc/sparc-sun-sunos4.1.1/2.0/crt0.o): Undefined symbol ___dli referenced from text segment crt1.c:45 (/usr/local/lib/gcc/sparc-sun-sunos4.1.1/2.0/crt0.o): Undefined symbol ___dli referenced from text segment crt1.c:45 (/usr/local/lib/gcc/sparc-sun-sunos4.1.1/2.0/crt0.o): Undefined symbol ___dlp referenced from text segment crt1.c:45 (/usr/local/lib/gcc/sparc-sun-sunos4.1.1/2.0/crt0.o): Undefined symbol ___dlp referenced from text segment crt1.c:45 (/usr/local/lib/gcc/sparc-sun-sunos4.1.1/2.0/crt0.o): Undefined symbol ___dlp referenced from text segment Thanks in advance for your help. Shaun McCullagh (RA) School of Information Systems., University of East Anglia., Norwich England NR4 7TJ sm@uk.ac.uea.sys ( JANET ) Tel +44 603 592692 sm@sys.uea.ac.uk ( Other Nets ) FAX +44 603 507720 ******************************************************************* "I can feel the Data coming out of my Macintosh" Anon. *******************************************************************
Technical Details
Message-ID:
<7933.9204071823@sys.uea.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!information-systems.east-anglia.ac.UK!smShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!information-systems.east-anglia.ac.UK!sm From: sm@information-systems.east-anglia.ac.UK Subject: g++ v 2.0 on a Sun SPARC 2 ( Sun OS v 4.1.1 ) Message-ID: <7933.9204071823@sys.uea.ac.uk> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 7 Apr 1992 18:23:51 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 66