From owner-freebsd-questions Thu Jul 20 21:42:26 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id VAA06738 for questions-outgoing; Thu, 20 Jul 1995 21:42:26 -0700 Received: from comnet.spu.ac.th (comnet.spu.ac.th [202.44.68.1]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id VAA06729 for ; Thu, 20 Jul 1995 21:42:19 -0700 Received: by comnet.spu.ac.th (8.6.9/A/UX-3.00) id LAA08688; Fri, 21 Jul 1995 11:42:45 -0700 Date: Fri, 21 Jul 1995 11:42:44 -0700 (PDT) From: amnuay muthitacharoen To: questions@FreeBSD.org Subject: Gnu C++ Compilation Problem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: questions-owner@FreeBSD.org Precedence: bulk When I compiled the following Gnu C++ program in FreeBSD Unix installed from the FreeBSD CDROM :- #include #include "/usr/include/math.h" void main() { int num ; cout << "Enter num : " ; cin >> num ; cout <<"The cube of " << num << " is " << pow(num,3) <<" .\n" ; } 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 Please tell me what I had done wrong or did I missed out something ? Regards Amnuay Muthitacharoen