🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

complex artihmetic again

#250
From: merworth
Date: Fri, 11 Jul 1986 16:20
35 lines
1664 bytes
First, thanks to everyone who responded to my posting about
the complex arithmetic problem.  I added the -lm flag to include
the math library.  Now I have a new set of problems with the
same program.  At first I thought it was due to the fact that
the CC script allowed a command line of the form (which it should):

	CC test.c -lC -lm

but when passed to cc, the -lC flag was added again.

	cc   test..c -lC -lm -lC

But I modified the CC script to not include any libraries as default.
Either way, I get the same error messages.

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

Please excuse me if I am just overlooking something obvious.  If I take
the test.o file and load it manually, I get an executable file but it
gives a "Bus error core dump" when executed. 

	ld -X /lib/crt0.o test.o -lC -lm -lc

Thanks for any help.
-- 
Boyd Merworth
The University of Texas at Austin, Computation Center,   Austin, TX 78712
merworth@ngp.cc.utexas.edu 	 {ihnp4,allegra,ut-sally}!ut-ngp!merworth
				 	       {seismo}!ut-sally!merworth
Technical Details
Message-ID: <3636@ut-ngp.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utcs!mnetor!seismo!lll-crg!topaz!uwvax!husc6!harvard!ut-sally!ut-ngp!merworth

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!lll-crg!topaz!uwvax!husc6!harvard!ut-sally!ut-ngp!merworth
From: merworth@ut-ngp.UUCP
Newsgroups: net.lang.c++
Subject: complex artihmetic again
Message-ID: <3636@ut-ngp.UUCP>
Date: Fri, 11-Jul-86 12:20:44 EDT
Article-I.D.: ut-ngp.3636
Posted: Fri Jul 11 12:20:44 1986
Date-Received: Fri, 11-Jul-86 23:17:21 EDT
Organization: UTexas Computation Center, Austin, Texas
Lines: 35
Keywords: complex