Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ulysses.UUCP Path: utzoo!watmath!clyde!burl!ulysses!jss From: jss@ulysses.UUCP (Jerry Schwarz) Newsgroups: net.lang.c++ Subject: Re: multiply defined symbols when using complex math library Message-ID: <1249@ulysses.UUCP> Date: Mon, 5-May-86 11:36:06 EDT Article-I.D.: ulysses.1249 Posted: Mon May 5 11:36:06 1986 Date-Received: Tue, 6-May-86 06:19:19 EDT References: <383@mcc-pp.UUCP> Organization: AT&T Bell Laboratories, Murray Hill Lines: 21 > > So I took the program and compiled it according to the instructions > back in the section called "Technical Tips" on page 5-4: > > CC test.c -lC -lm > > and I get: > > CC t.c: > cc t..c -lC -lm -lC > __ctors: ld:__ctdt.o: multiply defined > __dtors: __ctdt.o: multiply defined > This happens when "-lC" occurs twice in the "cc" line. It doing so because "CC" always adds it. And you included it explicitly in the "CC" line. If you omit "-lC" from the CC invocation this compliant should go away. Jerry Schwarz ulysses!jss Bell Labs, MH