[openbeos] Re: newbie problem

Re: [openbeos] Re: newbie problem (Saturday, December 14 2002, 18:29:34)


>Are you using, by chance, the BeOs developer edition or some other "strange" 
>distribution?
Thats rigth, i am really using this Dev Edition. Since a few days I am proud 
owner of my own BeOS Pro 5. Until now I had no time to install it but in this 
case I will do as soon as posible. I allready found that it cannot be a 
hardware problem because the same occurs on two different boxes, but both 
with Dev Edition. It also is not a problem of precision(). The same error 
qccurs when commenting  the cout.precision(16); line.
>If so, then you have probably a broken compiler.
What exactly do you mean with broken? I am using g++ Version 2.95.3 as comes 
with Dev Edition. Is ther another compiler in included in the BeOS Pro 5?
>
>(and, if this is the case, the following code should crash too)
>
>#include <iostream.h>
>
>int main()
>{
>       ifstream file;
>
>}
Code does not crash, there are already errors when compiling:

noses@BeOS:/boot/Temp# g++ test.cpp
test.cpp: In function `int main()':
test.cpp:5: `ifstream' undeclared (first use this function)
test.cpp:5: (Each undeclared identifier is reported only once
test.cpp:5: for each function it appears in.)
test.cpp:5: parse error before `;'     
  



Other related posts: