Article View: net.lang.c++
Article #253Re: complex artihmetic again
From: kana
Date: Tue, 15 Jul 1986 14:28
Date: Tue, 15 Jul 1986 14:28
35 lines
1398 bytes
1398 bytes
> My command line: CC test.c -lC -lm
>
> CC test.c:
> cc test..c -lC -lm
> __ctors: ld:__ctdt.o: multiply defined
> __dtors: __ctdt.o: multiply defined
I found that CC executes the following commands:
/lib/cpp -C -I/usr/include/CC test.c | cfront +L +ftest.c > test..c
cc -c test..c -lC -lm
mv test..o test.o
cc test.o -lC -lm -lC
nm a.out | munch > __ctdt.c
cc -c __ctdt.c
cc test.o -lC -lm __ctdt.o -lC
If the last line is
cc test.o __ctdt.o -lC -lm -lC
we can get a correct executable a.out.
I am using the following command, because I don't dare to rewrite CC.
From sh:
LIBRARY="-lC -lm" CC test.c
From csh:
setenv LIBRARY "-lC -lm"
CC test.c
--
Katsumi Kanasaki
Software Research Center, Ricoh Co., Ltd.
PHONE: (03)815-7261
JUNET: kana@charlie.ricoh.junet
UUCP: ...!{hplabs,mcvax}!kddlab!titcca!koccvax!kossvax!patty!charlie!kana
Technical Details
Message-ID:
<328@patty.ricoh.junet>Path:
arc1-ca.pugleaf.net!utzoo!utcs!mnetor!seismo!mcvax!kddlab!ccut!titcca!koccvax!koeavax!kossvax!patty!kanaReferences:
<3636@ut-ngp.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utcs!mnetor!seismo!mcvax!kddlab!ccut!titcca!koccvax!koeavax!kossvax!patty!kana From: kana@patty.UUCP Newsgroups: net.lang.c++ Subject: Re: complex artihmetic again Message-ID: <328@patty.ricoh.junet> Date: Tue, 15-Jul-86 10:28:54 EDT Article-I.D.: patty.328 Posted: Tue Jul 15 10:28:54 1986 Date-Received: Fri, 18-Jul-86 06:26:39 EDT References: <3636@ut-ngp.UUCP> Organization: Ricoh Software Research Center, Tokyo Lines: 35