Thread View: gnu.g++.help
1 messages
1 total messages
Started by Mike Stump
Sat, 29 Aug 1992 19:26
Re: Problems with collect on SUNOS 4.1.2
Author: Mike Stump
Date: Sat, 29 Aug 1992 19:26
Date: Sat, 29 Aug 1992 19:26
44 lines
2071 bytes
2071 bytes
This problem should not exist in the next release of gcc. gcc 2.2.1
also cures this problem.
> From: williams@herky.cs.uiowa.edu (Kent Williams)
> Message-Id: <13165@ns-mx.uiowa.edu>
> Date: 25 Jun 92 16:43:33 GMT
> Reply-To: williams@herky.cs.uiowa.edu (Kent Williams)
> Organization: U of Iowa, Iowa City, IA
> To: bug-g++@prep.ai.mit.edu
> I've just installed GCC 2.2.2 on a SparcStation 2, configuring with
> configure sparc-sun-sunos4.1.2
> And then compiled up libg++-2.1 (Had some problems there, but that's a
> different story)
> Of course my first program to try is this:
> #include <iostream.h>
> main() {
> cout << "hello world\n" ;
> }
> Which works fine until I try to static link it, then ld gives me oodles
> of warnings, to wit:
> cd /nfs/worf_users/kent/sparc2/
> gcc -static -g -v test.cc -o test -lg++
> Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.2/2.2.2/specs
> gcc version 2.2.2
> /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.2/2.2.2/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 -g test.cc /usr/tmp/cca01701.i
> GNU CPP version 2.2.2 (sparc)
> /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.2/2.2.2/cc1plus /usr/tmp/cca01701.i -quiet -dumpbase test.cc -g -version -o /usr/tmp/cca01701.s
> /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.2/2.2.2/ld -e start -dc -dp -Bstatic -o test /lib/crt0.o -L/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.2/2.2.2 -L/usr/local/lib test.o -lg++ -lgcc -lc -lg -lgcc
> ld: Undefined symbol
> LBE50
> LBB50
> LBE40
> LBB40
> LBE51
> LBB51
> LBE41
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads