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]