Re: STL on Solaris system
- From: Ewald Ertl <ewald.ertl@xxxxxxxxxxxx>
- Date: Tue, 13 Mar 2007 13:13:45 +0100
hi,
ischteuh@xxxxxxxxx wrote:
Hi everybody,which compiler do you use?
I would like compile a little program in c++
#include <iostream>
using namespace std;
int main()
{
cout << "coucou" << endl;
}
But there are few errors :
test.cpp:1:20: error: iostream: No such file or directory
test.cpp: In function 'int main()':
test.cpp:7: error: 'cout' was not declared in this scope
test.cpp:7: error: 'endl' was not declared in this scope
$> uname -a
SunOS 5.9 Generic_118558-17 sun4u sparc SUNW,Ultra-Enterprise
Compiling with gcc 3.3 on solaris 9 works
[ewer@solperf:/users/trinomic/ewer]>cat te.cpp
#include <iostream>
using namespace std;
int main()
{
cout << "coucou" << endl;
}
[ewer@solperf:/users/trinomic/ewer]>g++ -o te te.cpp
[ewer@solperf:/users/trinomic/ewer]>te
coucou
[ewer@solperf:/users/trinomic/ewer]>g++ --version
g++ (GCC) 3.3
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Greetings Ewald
.
- Follow-Ups:
- Re: STL on Solaris system
- From: ischteuh
- Re: STL on Solaris system
- References:
- STL on Solaris system
- From: ischteuh
- STL on Solaris system
- Prev by Date: Is it possible to setup Solaris9 as a LDAP client.
- Next by Date: Re: poor man's cluster testing
- Previous by thread: STL on Solaris system
- Next by thread: Re: STL on Solaris system
- Index(es):
Relevant Pages
|