From owner-freebsd-questions Mon Sep 3 9:41:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from marvin.1729.net (1729.xs4all.nl [213.84.67.6]) by hub.freebsd.org (Postfix) with ESMTP id 8FEE937B406 for ; Mon, 3 Sep 2001 09:41:06 -0700 (PDT) Received: from arnold (arnold.lan [192.168.1.8]) by marvin.1729.net (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with SMTP id TAA24137; Mon, 3 Sep 2001 19:15:31 +0200 Message-ID: <035901c13497$3d1559c0$0801a8c0@lan.1729.net> From: "BSDJunk" To: , References: <93.fb8281a.28c50a43@aol.com> Subject: Re: C++ link Date: Mon, 3 Sep 2001 18:41:11 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 Have you tried "c++"? Works for me. ----- Original Message ----- From: To: Sent: Monday, September 03, 2001 6:30 PM Subject: C++ link > Dear FreeBSD Advisor: > > I have installed the FreeBSD on Empty harddisk using CD. Everything looks > good and operational. Also, I test the for ashort PERL programm and it is > working. However, I couldn't run a simple c++ program. > #include > int main() > { > cout<<"Hello"< return 0; > } > I tried with command "cc"" "gcc" "g++", but, it will create .o file but > couldn't recognize cout and endl, it seems like it couldn't link iostream.h. > I serached for .h file and located iostream.h is in /usr/include/g++, I add > it to the environment variable PATH and it still didn't help. ( I didn't find > file iostream.o but, I suppose it might be combined in one .a file). I picked > up almost every packages related to c/c++ to make sure I didn't miss > something. I need someone give me a hint to find out the problem. > I got copy of this BSD from collegue instead of downloading from web site. I > don't know if the copy is complete or there is something I don't know to make > this c++ compiler work. > If you think I need to download some parts of software, would you please > guide me through. > I will appreciate any input on this matter. > > Adel > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message