🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41436

reference to undefined pow

#41436
From: Steve Emsley
Date: Sat, 06 Apr 1996 00:00
18 lines
1161 bytes
Hi,

I'm stuck with a SIMPLE problem. I'm trying to compile a test program
which usings 'pow'. I've #included <math.h> and compile with -L/lib
and -lm so I should be OK. But I get an erro message about refernecing
an undefined pow. What am I doing wrong? 

This problem has already caused me a barrel load of shit since to try
to remedy it I installed a newer binutils and it totally screwed the
compiler. Then, in a Friday night fit of pique, I fdisked my partition
and now (at 6.00 am) have just about got Linux up again and gcc 2.
reinstalled. Guess what, I've got the same error message.

Since I'll probably be recompiling till midday can anyone suggest
where I'm going wrong with this!

Cheers,
Steve Emsley
Technical Details
Message-ID: <4k4v09$1up@violet.csv.warwick.ac.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,faa2f7634d31a5a5,start
X-Google-Attributes: gid11318c,public
From: lsrjz@csv.warwick.ac.uk (Steve Emsley)
Subject: reference to undefined pow
Date: 1996/04/06
Message-ID: <4k4v09$1up@violet.csv.warwick.ac.uk>
X-Deja-AN: 146055426
content-type: text/plain; charset=US-ASCII
organization: University of Warwick
mime-version: 1.0
newsgroups: gnu.gcc.help