Hi guys,

While compile "helloword program" in Opensuse10.2 ,using
Qt Code:
  1. g++ or gcc
To copy to clipboard, switch view to plain text mode 
i am getting compilation errors.
Here is my helloword.cpp
Qt Code:
  1. //This is the test program, helloworld
  2.  
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. cout << "Hello World!" << endl;
  9.  
  10. return 0;
  11. }
To copy to clipboard, switch view to plain text mode 

After writing the code i am compiling ,the file using g++......
Qt Code:
  1. g++ -o hello helloworld.cpp
To copy to clipboard, switch view to plain text mode 

Here is the errors am getting while compilation ....
Qt Code:
  1. In file included from helloworld.cpp:3:
  2. /usr/include/c++/4.1.2/iostream:43:28: error: bits/c++config.h: No such file or directory
  3. In file included from /usr/include/c++/4.1.2/ios:43,
  4. from /usr/include/c++/4.1.2/ostream:44,
  5. from /usr/include/c++/4.1.2/iostream:44,
  6. from helloworld.cpp:3:
  7. /usr/include/c++/4.1.2/iosfwd:45:29: error: bits/c++locale.h: No such file or directory
  8. /usr/include/c++/4.1.2/iosfwd:46:25: error: bits/c++io.h: No such file or directory
  9. In file included from /usr/include/ctype.h:28,
  10. from /usr/include/c++/4.1.2/cctype:51,
  11. from /usr/include/c++/4.1.2/iosfwd:47,
  12. from /usr/include/c++/4.1.2/ios:43,
  13. from /usr/include/c++/4.1.2/ostream:44,
  14. from /usr/include/c++/4.1.2/iostream:44,
  15. from helloworld.cpp:3:
  16. /usr/include/bits/types.h:31:20: error: stddef.h: No such file or directory
  17. In file included from /usr/include/c++/4.1.2/climits:50,
  18. from /usr/include/c++/4.1.2/bits/stl_algobase.h:66,
  19. from /usr/include/c++/4.1.2/bits/char_traits.h:46,
  20. from /usr/include/c++/4.1.2/ios:45,
  21. from /usr/include/c++/4.1.2/ostream:44,
  22. from /usr/include/c++/4.1.2/iostream:44,
  23. from helloworld.cpp:3:
  24. ------- --------
  25. ------- --------
To copy to clipboard, switch view to plain text mode 



Can anybody help me to solve this error .
i am so stucked up..!!!