From owner-freebsd-questions Thu Nov 15 18:17:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from IMGate1.cshore.com (imgate1.cshore.com [63.237.136.14]) by hub.freebsd.org (Postfix) with ESMTP id A20C937B416 for ; Thu, 15 Nov 2001 18:17:07 -0800 (PST) Received: from there (dialup-uu-dynamic227.cshore.com [63.112.158.227]) by IMGate1.cshore.com (Postfix) with SMTP id DD6182426D for ; Thu, 15 Nov 2001 21:41:06 -0500 (EST) Content-Type: text/plain; charset="iso-8859-1" From: Matthew Graybosch Reply-To: matthew@starbreaker.net Organization: starbreaker.net Message-Id: <200111152119.36296@starbreaker.net> To: freebsd-questions@freebsd.org Subject: How do I access the C++ libraries so I can teach myself C++? Date: Thu, 15 Nov 2001 21:24:14 -0500 X-Mailer: KMail [version 1.3] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -----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 and 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