Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jul 1995 16:33:47 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        amnuay@comnet.spu.ac.th (amnuay muthitacharoen)
Cc:        questions@FreeBSD.org
Subject:   Re: Gnu C++ Compilation Problem
Message-ID:  <199507210703.QAA12270@genesis.atrad.adelaide.edu.au>
In-Reply-To: <Pine.AUX.3.91.950721114141.8678A-100000@comnet.spu.ac.th> from "amnuay muthitacharoen" at Jul 21, 95 11:42:44 am

next in thread | previous in thread | raw e-mail | index | archive | help
amnuay muthitacharoen stands accused of saying:
> 	I got the following messages :-
> 
> 1) /var/tmp/cc0100421.0: Undefined symbol '_pow' referenced from text segment
> 2) /usr/lib/libg++.so.2.0: Undefined symbol "_pow" referenced

I would suspect that you're not linking with the maths library;
add -lm to the end of the compiler command.

> 	Amnuay Muthitacharoen
-- 
]] Mike Smith, Software Engineer        msmith@atrad.adelaide.edu.au    [[
]] Genesis Software                     genesis@atrad.adelaide.edu.au   [[
]] High-speed data acquisition and                                      [[
]] realtime instrument control          (ph/fax) +61-8-267-3039         [[
]] My car has "demand start" - Terry Lambert                            [[



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507210703.QAA12270>