Thread View: gnu.g++.help
1 messages
1 total messages
Started by James Buster
Fri, 11 Sep 1992 01:19
problem with collect in g++ 2.x
Author: James Buster
Date: Fri, 11 Sep 1992 01:19
Date: Fri, 11 Sep 1992 01:19
29 lines
1223 bytes
1223 bytes
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
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