Error parsing included files

Hi,

I obtain sever errors like

In file included from dum.cpp:1:
In file included from /usr/include/c++/4.6/iostream:40:
In file included from /usr/include/c++/4.6/ostream:40:
In file included from /usr/include/c++/4.6/ios:39:
In file included from /usr/include/c++/4.6/iosfwd:42:
In file included from /usr/include/c++/4.6/bits/postypes.h:42:
In file included from /usr/include/c++/4.6/cwchar:46:
In file included from /usr/include/c++/4.6/tr1/wchar.h:32:
In file included from /usr/include/c++/4.6/tr1/cwchar:34:
/usr/include/c++/4.6/cwchar:66:11: error: no member named 'mbstate_t' in the
global namespace
  using ::mbstate_t;
        ~~^
...
/usr/include/c++/4.6/cwchar:215:12: error: no matching function for call to
'wcschr'
  { return wcschr(const_cast<const wchar_t*>(__p), __c); }
           ^~~~~~
...
In file included from dum.cpp:1:
In file included from /usr/include/c++/4.6/iostream:40:
In file included from /usr/include/c++/4.6/ostream:40:
In file included from /usr/include/c++/4.6/ios:43:
In file included from /usr/include/c++/4.6/bits/ios_base.h:41:
In file included from /usr/include/c++/4.6/ext/atomicity.h:34:
In file included from /usr/include/c++/4.6/i686-linux-gnu/bits/gthr.h:170:
In file included from
/usr/include/c++/4.6/i686-linux-gnu/bits/gthr-default.h:41:
/usr/include/pthread.h:220:1: error: unknown type name '__BEGIN_DECLS'
__BEGIN_DECLS
^
/usr/include/pthread.h:225:1: error: expected unqualified-id
extern int pthread_create (pthread_t *__restrict __newthread,
^
/usr/include/pthread.h:263:44: error: expected function body after function
declarator
extern int pthread_detach (pthread_t __th) __THROW;
                                           ^
/usr/include/pthread.h:267:38: error: expected function body after function
declarator
extern pthread_t pthread_self (void) __THROW __attribute__ ((__const__));
                                     ^
/usr/include/pthread.h:270:69: error: expected function body after function
declarator
extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) __THROW;
                                                                    ^
/usr/include/pthread.h:278:55: error: expected function body after function
declarator
extern int pthread_attr_init (pthread_attr_t *__attr) __THROW __nonnull
((1));
                                                      ^
/usr/include/pthread.h:282:6: error: expected function body after function
declarator
     __THROW __nonnull ((1));
     ^
...

as I parse an "hello world-like" cpp file.

In my program I use:
llvm::IntrusiveRefCntPtr<clang::HeaderSearchOptions> headerSearchOptions(new
clang::HeaderSearchOptions());
headerSearchOptions->ResourceDir = "/usr/local" "/lib/clang/"
CLANG_VERSION_STRING;
// pass path through command line
for (int i = 2; i < argc; i++) {
  headerSearchOptions->AddPath(argv[i], clang::frontend::Angled, false,
false);
}

Through command line I pass these paths:
/usr/include/linux /usr/include/c++/4.6/parallel/ /usr/include/c++/4.6
/usr/include/c++/4.6/tr1/ /usr/include/i386-linux-gnu/c++/4.6
/usr/include/c++/4.6/i686-linux-gnu/ /usr/include/
/usr/include/i386-linux-gnu/bits/ /usr/include/i386-linux-gnu/

Could you please help?