🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c++
Article #182

Re: multiply defined symbols when using complex math library

#182
From: Jerry Schwarz
Date: Mon, 05 May 1986 15:36
21 lines
1139 bytes
> 
> 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
Technical Details
Message-ID: <1249@ulysses.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!jss
References: <383@mcc-pp.UUCP>

Show Full Headers
Complete Article Headers
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: arc1-ca.pugleaf.net!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