From: "Karl Gangle" <kgangle72@attbi.com>
To: <gcc-help@gcc.gnu.org>
Subject: Problems getting g++ to run
Date: Wed, 05 Mar 2003 23:04:00 -0000 [thread overview]
Message-ID: <OOEBLBCJGDMKNNDEEGMDCEPLCAAA.kgangle72@attbi.com> (raw)
Hi,
I am trying to compile a c++ program using g++ in Linux. The program is
#include <iostream>
#include <string>
int main() {
string s1( "string1" );
cout << s1 << endl;
return 1;
}
The compiler errors indicate that string, cout, endl, and s1 are not
defined. I think the problem is that the include files are not found. So,
what needs to be done for g++ to find the include file? What environment
variables along with there value need to be set?
What needs to be done to set library environment variable values?
If there are any other things that need to be done to get g++ to work please
let me know.
Thank you.
Karl Gangle
next reply other threads:[~2003-03-05 23:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-05 23:04 Karl Gangle [this message]
2003-03-05 23:30 ` glibc irritations Bernd Prager
2003-03-05 23:33 ` Problems getting g++ to run Oscar Fuentes
2003-03-06 0:00 ` LLeweLLyn Reese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=OOEBLBCJGDMKNNDEEGMDCEPLCAAA.kgangle72@attbi.com \
--to=kgangle72@attbi.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).