Date: Fri, 21 Jul 1995 21:58:04 -0400 (EDT) From: Matthew Jason White <mwhite+@CMU.EDU> To: freebsd-questions@freefall.cdrom.com Cc: questions@freebsd.org Subject: Re: Gnu C++ Compilation Problem Message-ID: <0k45ggS00YUtAcHWVu@andrew.cmu.edu> In-Reply-To: <Pine.SUN.3.91.950721194945.15366B-100000@cappuccino.eng.umd.edu> References: <Pine.SUN.3.91.950721194945.15366B-100000@cappuccino.eng.umd.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0k45ggS00YUtAcHWVu>