Stroustrup, std_lib_facilities.h and load of error

Hello!

at the moment i'm reading Stroustrup "Programming principles and practice using C++". I need to write my first program, "Hello, World", it uses std_lib_facilities.h header file.

Today i've installed Microsoft Visual C++ 2010 Express. Compiler finds the std_lib_facilities.h file(i've done everything by the book) and then gives my loads of errors:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
1
1>  Hello World.cpp
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(71): error C2868: 'std::vector<_Ty,_Ax>::size_type' : illegal syntax for using-declaration; expected qualified-name
1>          c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(95) : see reference to class template instantiation 'Vector<T>' being compiled
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(71): error C2143: syntax error : missing ';' before '='
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(71): error C2238: unexpected token(s) preceding ';'
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(80): error C2061: syntax error : identifier 'initializer_list'
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(80): error C2535: 'Vector<T>::Vector(void)' : member function already defined or declared
1>          c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(75) : see declaration of 'Vector<T>::Vector'
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(102): error C2868: 'std::basic_string<_Elem,_Traits,_Ax>::size_type' : illegal syntax for using-declaration; expected qualified-name
1>          with
1>          [
1>              _Elem=char,
1>              _Traits=std::char_traits<char>,
1>              _Ax=std::allocator<char>
1>          ]
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(102): error C2143: syntax error : missing ';' before '='
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(102): error C2238: unexpected token(s) preceding ';'
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(213): error C2143: syntax error : missing ';' before '{'
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(213): error C2275: 'std::tr1::uniform_int_distribution<>' : illegal use of this type as an expression
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(213): error C2143: syntax error : missing ';' before '}'
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(222): error C2988: unrecognizable template declaration/definition
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(222): error C2059: syntax error : 'using'
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(243): error C2143: syntax error : missing ';' before '<'
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(243): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(243): error C2988: unrecognizable template declaration/definition
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(243): error C2059: syntax error : '<'
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(251): error C2143: syntax error : missing ';' before '{'
1>c:\users\a\documents\visual studio 2010\projects\hello world\hello world\std_lib_facilities.h(251): error C2447: '{' : missing function header (old-style formal list?)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


i use the std_lib_facilities.h file from Stroustrup website. \

So what is the problem?
See this thread for a solution: http://www.cplusplus.com/forum/beginner/139153/
Topic archived. No new replies allowed.