home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky gnu.g++.help:1167 comp.lang.c++:13079
- Newsgroups: gnu.g++.help,comp.lang.c++
- Path: sparky!uunet!cis.ohio-state.edu!cygnus.com!mrs
- From: mrs@cygnus.com (Mike Stump)
- Subject: Re: Problems with collect on SUNOS 4.1.2
- Message-ID: <9208291926.AA07916@cygnus.com>
- Sender: gnulists@ai.mit.edu
- Organization: Gatewayed from the GNU Project mailing list help-g++@prep.ai.mit.edu
- Date: Sat, 29 Aug 1992 19:26:39 GMT
- Lines: 45
-
- 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
-
-