Article View: gnu.gcc.help
Article #42190sqrt() and pow() not recognized
From: Andrew_R._Mitz
Date: Tue, 26 Dec 1995 00:00
Date: Tue, 26 Dec 1995 00:00
19 lines
1258 bytes
1258 bytes
I am having the same problem on a Linux (gcc 2.5.8) and Sparc Solaris (gcc 2.5.6) platform, so I am probably just doing the same mistake on both. When I compile a short c program that uses either sqrt() or pow(), I get this error message: ... undefined symbol _sqrt referenced from text segment. I have included math.h. I get a different error if I use the wrong number of parameters in the functions. The option -fbuiltin did not seem to help. What am I doing wrong? Thanks in advance. ------------------------------------------------------------------------ Andrew Mitz, Biomed. Eng., National Institutes | Opinions are mine alone of Health Animal Center, Poolesville, MD | arm@helix.nih.gov ------------------------------------------------------------------------
Technical Details
Message-ID:
<1995Dec26.205032.15172@alw.nih.gov>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,97d7d17902cfc548,start X-Google-Attributes: gid11318c,public From: arm@helix.nih.gov (Andrew_R._Mitz) Subject: sqrt() and pow() not recognized Date: 1995/12/26 Message-ID: <1995Dec26.205032.15172@alw.nih.gov> X-Deja-AN: 122884966 sender: postman@alw.nih.gov (AMDS Postmaster) organization: National_Institutes_of_Health reply-to: arm@helix.nih.gov newsgroups: gnu.gcc.help