🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50655

why <math.h> does not work with gcc?

#50655
From: Richard Q. Chen
Date: Tue, 31 Aug 1993 15:40
17 lines
1234 bytes
Hello, everyone.
	I  just installed gcc-2.4.5 on my sparc 10 running SunOS
4.1.3. Simple tests shows that installation is ok. But in one test which
requires using "sqrt" math function. I got the message
	undefine symbol "sqrt"
I included <math.h> in the file and the file compiled without complaints
using cc compiler.

I also tried using -I- -I/usr/local/lib/gcc-lib/sparc-sun-sunos4.1/2.4.5/include
without success.

Can somebody tell me what I did wrong? Thanks in advance.

---
Richard Q. Chen
203 Mason Lab
chen@fractal.eng.yale.edu  (203-432-4355)
Technical Details
Message-ID: <1993Aug31.154047.7029@news.yale.edu>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!yale.edu!news.yale.edu!news
References: <ISHIKAWA.93Aug23195309@ds5200.personal-media.co.jp>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,eb3ec95cb4f9b518
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-08-31 09:12:55 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!yale.edu!news.yale.edu!news
From: chen@eng.yale.edu (Richard Q. Chen)
Subject: why <math.h> does not work with gcc?
Message-ID: <1993Aug31.154047.7029@news.yale.edu>
Sender: news@news.yale.edu (USENET News System)
Nntp-Posting-Host: fractal.eng.yale.edu
Reply-To: chen@eng.yale.edu
Organization: Yale University
References: <ISHIKAWA.93Aug23195309@ds5200.personal-media.co.jp>
Date: Tue, 31 Aug 1993 15:40:47 GMT
Lines: 19