Date: Thu, 15 Nov 2001 21:24:14 -0500 From: Matthew Graybosch <matthew@starbreaker.net> To: freebsd-questions@freebsd.org Subject: How do I access the C++ libraries so I can teach myself C++? Message-ID: <200111152119.36296@starbreaker.net>
next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm trying to teach myself C++ on my 4.4-Release system. I can use the compiler and such, but when I try to compile a program that includes <iostream.h> and <math.h> I get the following output: sephiroth# cc -o seconds ex2.cpp /tmp/ccMLbXyG.o: In function `main': /tmp/ccMLbXyG.o(.text+0x65): undefined reference to `endl(ostream &)' /tmp/ccMLbXyG.o(.text+0x86): undefined reference to `cout' /tmp/ccMLbXyG.o(.text+0x8b): undefined reference to `ostream::operator<<(char const *)' /tmp/ccMLbXyG.o(.text+0x96): undefined reference to `ostream::operator<<(double)' /tmp/ccMLbXyG.o(.text+0xa1): undefined reference to `ostream::operator<<(char const *)' /tmp/ccMLbXyG.o(.text+0xac): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' /tmp/ccMLbXyG.o(.text+0xc5): undefined reference to `endl(ostream &)' /tmp/ccMLbXyG.o(.text+0xe6): undefined reference to `cout' /tmp/ccMLbXyG.o(.text+0xeb): undefined reference to `ostream::operator<<(char const *)' /tmp/ccMLbXyG.o(.text+0xf6): undefined reference to `ostream::operator<<(double)' /tmp/ccMLbXyG.o(.text+0x101): undefined reference to `ostream::operator<<(char const *)' /tmp/ccMLbXyG.o(.text+0x10c): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' /tmp/ccMLbXyG.o(.text+0x125): undefined reference to `endl(ostream &)' /tmp/ccMLbXyG.o(.text+0x146): undefined reference to `cout' /tmp/ccMLbXyG.o(.text+0x14b): undefined reference to `ostream::operator<<(char const *)' /tmp/ccMLbXyG.o(.text+0x156): undefined reference to `ostream::operator<<(double)' /tmp/ccMLbXyG.o(.text+0x161): undefined reference to `ostream::operator<<(char const *)' /tmp/ccMLbXyG.o(.text+0x16c): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' /tmp/ccMLbXyG.o(.text+0x185): undefined reference to `endl(ostream &)' /tmp/ccMLbXyG.o(.text+0x1a3): undefined reference to `cout' /tmp/ccMLbXyG.o(.text+0x1a8): undefined reference to `ostream::operator<<(char const *)' /tmp/ccMLbXyG.o(.text+0x1b3): undefined reference to `ostream::operator<<(long double)' /tmp/ccMLbXyG.o(.text+0x1be): undefined reference to `ostream::operator<<(char const *)' /tmp/ccMLbXyG.o(.text+0x1c9): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))' I did a "whereis iostream.h" as both normal user and superuser, and got no results. If there's a manual I'm supposed to read before coding under FreeBSD, where do I find it? Thanks in advance. - -- Matthew Graybosch http://www.starbreaker.net GnuPG Key ID: 0x7D488659 "This message has been satirized for your protection." -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE79HjOcCiK1X1IhlkRAsIvAKC4R7HhLce7wjXAMo1SKxS7ft/U2gCfdAC/ a6I32JjZowF0FvnWFc12n6I= =5iqy -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111152119.36296>