🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #950

Re: compiler warning, link problems

#950
From: Gnanasekaran Swaminathan
Date: Sat, 12 Sep 1992 18:11
20 lines
957 bytes
keister@poincare.phys.cmu.edu (Bradley D. Keister) writes:
: % g++ -o trash trash.c -lm
: // trash.c: In function `double  test ()':
: // trash.c:10: warning: control reaches end of non-void function
: ld:
: Undefined:
: hypot
: atan2
: cos
: sin
: exp
: cosh
: sinh
: log
: pow
: sqrt
: collect: /usr/bin/ld returned 1 exit status

Try
	g++ -o trash trash.c -lg++ -lm
Technical Details
Message-ID: <9209121811.AA29842@murdoch.acc.Virginia.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!virginia.edu!gs4t
References: <9209111410.AA10780@poincare.phys.cmu.edu>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!virginia.edu!gs4t
From: gs4t@virginia.edu (Gnanasekaran  Swaminathan)
Subject: Re: compiler warning, link problems
Message-ID: <9209121811.AA29842@murdoch.acc.Virginia.EDU>
Sender: gnulists@ai.mit.edu
Reply-To: gs4t@virginia.edu (Gnanasekaran  Swaminathan)
Organization: University of Virginia
References: <9209111410.AA10780@poincare.phys.cmu.edu>
Distribution: gnu
Date: Sat, 12 Sep 1992 18:11:24 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 21