From owner-freebsd-questions Fri Jul 21 18:59:03 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id SAA04564 for questions-outgoing; Fri, 21 Jul 1995 18:59:03 -0700 Received: from po6.andrew.cmu.edu (PO6.ANDREW.CMU.EDU [128.2.10.106]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id SAA04558 ; Fri, 21 Jul 1995 18:59:02 -0700 Received: (from postman@localhost) by po6.andrew.cmu.edu (8.6.12/8.6.12) id VAA08650; Fri, 21 Jul 1995 21:58:55 -0400 Received: via switchmail; Fri, 21 Jul 1995 21:58:53 -0400 (EDT) Received: from unix17.andrew.cmu.edu via qmail ID ; Fri, 21 Jul 1995 21:58:06 -0400 (EDT) Received: from unix17.andrew.cmu.edu via qmail ID ; Fri, 21 Jul 1995 21:58:04 -0400 (EDT) Received: from mms.4.60.Jan.26.1995.18.43.47.sun4c.411.EzMail.2.0.CUILIB.3.45.SNAP.NOT.LINKED.unix17.andrew.cmu.edu.sun4c.411 via MS.5.6.unix17.andrew.cmu.edu.sun4c_411; Fri, 21 Jul 1995 21:58:04 -0400 (EDT) Message-ID: <0k45ggS00YUtAcHWVu@andrew.cmu.edu> Date: Fri, 21 Jul 1995 21:58:04 -0400 (EDT) From: Matthew Jason White To: freebsd-questions@freefall.cdrom.com Subject: Re: Gnu C++ Compilation Problem Cc: questions@freebsd.org In-Reply-To: References: Sender: questions-owner@freebsd.org Precedence: bulk Excerpts from internet.computing.freebsd-questions: 21-Jul-95 Re: Gnu C++ Compilation Pro.. by Chuck Robey@Glue.umd.edu > You called pow with at least one int, the 3 might be an int too. Pow is > supposed to be double pow( double, double), so you confused the system. > Change your types, I bet it will work if you give it the right ones. > Remember that under C++, the types are combined with the function name to > define which function you *really* call. Another possible solution is that he forgot the '-lm' flag on the link line. Does little good to define a symbol by including math.h if the math library is never linked in. -Matt