🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux.mandrake
Article #511

newbie: compiling with gcc 3.4.1 in Mandrake linux 10.1

#511
From: Carolyn Marenger
Date: Fri, 14 Jan 2005 09:19
25 lines
2211 bytes
I am hoping someone will tell me what I am doing wrong.  I have a simple
helloworld.cpp that I would like to compile.  I want to figure out what
options I need to select to compile.  There seem to be a few thousand
options to choose from, and I would like the generic basics.  ASCII/ISO C++
would be the ideal compile configuration for me.

When I compile my helloWorld.cpp file, 'gcc helloWorld.cpp I get an error
message reporting that cout is undeclared.  What am I doing wrong?  Any
assistance is appreciated.

In function 'int main(int, char**)'
Error: cout undeclared (first use in this function)
Error: (Each undeclared identifier is reported only once for each function
it appears in.)

-----
// helloWorld.cpp
#include <iostream>

int main(int argc, char *argv[])
{
  cout << "Hello, world!\n";
  return 1;
}
-----
Technical Details
Message-ID: <qMednQaalcYNE3rcRVn-hw@igs.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.igs.net!news.igs.net.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f8a83,4feeca8be9ee7674,start
X-Google-Thread: 11318c,4feeca8be9ee7674,start
X-Google-Attributes: gidf8a83,gid11318c,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.igs.net!news.igs.net.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 14 Jan 2005 03:19:11 -0600
From: Carolyn Marenger <cajunk@marenger.com>
Subject: newbie: compiling with gcc 3.4.1 in Mandrake linux 10.1
Newsgroups: alt.os.linux.mandrake,gnu.gcc.help
Followup-To: alt.os.linux.mandrake
Date: Fri, 14 Jan 2005 04:19:10 -0500
Organization: Marenger Family
User-Agent: KNode/0.8.0
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Message-ID: <qMednQaalcYNE3rcRVn-hw@igs.net>
Lines: 26
NNTP-Posting-Host: 216.58.12.165
X-Trace: sv3-smEfmTiQWNje4xtAvWXIErjr4KGufb6KUOYDfbrcz9wCzWaAOS759OI0U2R5v36HnpUqBYv+7gJS2Zw!3XmrkK0iSV5me6vcUy9ltRX0nlpCho9J7WGoCBIROvqbR352Zu0VOeGkYpboGYpsx1D8y15xwwaa!ogfSeQ==
X-Complaints-To: abuse@igs.net
X-DMCA-Complaints-To: abuse@igs.net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.22