Thread View: net.lang.c++
1 messages
1 total messages
Started by das
Tue, 05 Aug 1986 00:23
Problem with cc in 4.3bsd
Author: das
Date: Tue, 05 Aug 1986 00:23
Date: Tue, 05 Aug 1986 00:23
14 lines
1192 bytes
1192 bytes
For some reason, the 4.3 bsd C compiler does something funny when you give
cc the -c flag, the -o flag, and only one source file; the command
cc -c -o blah blah.c
puts the object file in "blah" and produces no "blah.o" file. This, of course,
is not what the SysV and 4.2 cc do; they effectively ignore the -o option when
-c is specified.
This breaks the CC script, since ..o files are not produced. To fix it, you
have to not accumulate the "-o filename" in the shell variable X; instead,
accumulate it in a variable named OF, say, so you can echo it when needed.
-- David Smallberg, das@locus.ucla.edu, {sdcrdcf,ucbvax}!ucla-cs!das
-- David Smallberg, das@locus.ucla.edu, {sdcrdcf,ucbvax}!ucla-cs!das
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