Date: Fri, 21 Jul 1995 11:42:44 -0700 (PDT) From: amnuay muthitacharoen <amnuay@comnet.spu.ac.th> To: questions@FreeBSD.org Subject: Gnu C++ Compilation Problem Message-ID: <Pine.AUX.3.91.950721114141.8678A-100000@comnet.spu.ac.th>
next in thread | raw e-mail | index | archive | help
When I compiled the following Gnu C++ program in FreeBSD Unix installed from the FreeBSD CDROM :- #include <iostream.h> #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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.AUX.3.91.950721114141.8678A-100000>