Compiling macros, aclic error

Hello,
When I try to compile a little hello world macro (test.C)

void test()
{
cout<<“Hello world”<<endl;
}

[i]with:
root [0] .x test.C+

then I get the following error:
[/i]
Info in TUnixSystem::ACLiC: creating shared library /ihp/home01/rissim/./test_C.so
In file included from /ihp/home01/rissim/file5pNe1V.h:29,
from /ihp/home01/rissim/file5pNe1V.cxx:13:
/ihp/home01/rissim/test.C: In function void test()': /ihp/home01/rissim/test.C:3: error:cout’ undeclared (first use this function)
/ihp/home01/rissim/test.C:3: error: (Each undeclared identifier is reported
only once for each function it appears in.)
/ihp/home01/rissim/test.C:3: error: `endl’ undeclared (first use this function)
g++: /ihp/home01/rissim/./file5pNe1V.o: No such file or directory
Error in : Compilation failed!
Error: Function test() is not defined in current scope FILE: LINE:0
Possible candidates are…
filename line:size busy function type and name
*** Interpreter error recovered ***
[i]
I am using:
gcc version 3.3.4 (pre 3.3.5 20040809)
root version 310_02
Suse linux, 9.?

I also tried root Version 4.01/05 (and used CVS to update to the latest version) and got the same error message

[/i]

and now I get this error:

Info in TUnixSystem::ACLiC: creating shared library /ihp/home01/rissim/./test_C.so
Usage: rootcint [-v][-v0-4] [-f] [out.cxx] [-c] file1.h[+][-][!] file2.h[+][-][!]…[LinkDef.h]
Only one verbose flag is authorized (one of -v, -v0, -v1, -v2, -v3, -v4)
and must be bofore the -f flags
For more extensive help type: rootcint -h
Error in : Dictionary generation failed!
Info in : Invoking compiler to check macro’s validity
/ihp/home01/rissim/test.C: In function void test()': /ihp/home01/rissim/test.C:3: error:cout’ undeclared (first use this function)
/ihp/home01/rissim/test.C:3: error: (Each undeclared identifier is reported
only once for each function it appears in.)
/ihp/home01/rissim/test.C:3: error: `endl’ undeclared (first use this function)
Error: Function test() is not defined in current scope FILE: LINE:0
Possible candidates are…
filename line:size busy function type and name
*** Interpreter error recovered ***

Ok, found the error. I have to include all necessary libraries…

You forgot the includes. Add
#include

Rene