public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problems getting g++ to run
@ 2003-03-05 23:04 Karl Gangle
  2003-03-05 23:30 ` glibc irritations Bernd Prager
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Karl Gangle @ 2003-03-05 23:04 UTC (permalink / raw)
  To: gcc-help


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-03-06  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-05 23:04 Problems getting g++ to run Karl Gangle
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

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).