home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.g++.help
- Path: sparky!uunet!wupost!csus.edu!netcom.com!bitbug
- From: bitbug@netcom.com (James Buster)
- Subject: problem with collect in g++ 2.x
- Message-ID: <08tns8+.bitbug@netcom.com>
- Date: Fri, 11 Sep 92 01:19:37 GMT
- Organization: Lynx Real-Time Systems, Inc.
- Lines: 29
-
- Collect appears to be working incorrectly.
-
- Here is my understanding of how collect is supposed to work, given the command
- line
- /path/collect -o t t.o -lg++
-
- /path/real-ld -r -o /path/to/temp/file t.o -lg++
-
- scan output of "nm -p /path/to/temp/file" to find constructors/destructors.
-
- Create an assembly language file (/path/to/asm/file.s).
-
- /path/to/c/compiler -c /path/to/asm/file.s -o /path/to/asm/file.o
-
- /path/real-ld -o t /path/to/temp/file /path/to/asm/file.o
-
- We are now finished linking. Instead, collect appears to do this:
-
- /path/real-ld -o t t.o -lg++
-
- Note the lack of -r, and the wrong output file name. Our linker complains
- about symbols not being resolved (constructors), and the link fails. Since
- the link failed, nm is never called.
-
- This seems so wrong that either I have done something horribly wrong, or
- collect is rather broken.
- --
- James Buster
- bitbug@netcom.com
-