compiling exampls in VS 2008 express , gives errors

Hello all
im new to this game engine , i try to learn it .
for start i got the c++ porting examples from git
https://github.com/drivird/drunken-octo-robot
and the SDK precompiled for windows .
now i setup the simple asteroids example like this :
Multi-threaded Debug DLL (/MDd)
includes :
“D:\Panda3D-1.8.0\include”;…\p3util;“D:\Panda3D-1.8.0\include\parser-inc”
preprocessor :
WIN32;WIN32_VC;NDEBUG;_DEBUG;_CONSOLE
libs:
libp3framework.lib
libpanda.lib
libpandafx.lib
libpandaexpress.lib
libp3dtoolconfig.lib
libp3dtool.lib
libp3direct.lib
libp3pystub.lib

im using Microsoft Platform SDK that comes with visual studio 2008 express .

but the errors that it gives me are :
what im doing wrong here ?

1>------ Build started: Project: asteroids, Configuration: Debug Win32 ------
1>Compiling...
1>world.cpp
1>d:\panda3d-1.8.0\include\parser-inc\iostream(32) : error C2059: syntax error : 'enum [tag]'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(32) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
1>d:\panda3d-1.8.0\include\parser-inc\iostream(42) : error C2062: type 'long' unexpected
1>d:\panda3d-1.8.0\include\parser-inc\iostream(42) : error C2238: unexpected token(s) preceding ';'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(54) : error C2062: type 'void' unexpected
1>d:\panda3d-1.8.0\include\parser-inc\iostream(54) : error C2238: unexpected token(s) preceding ';'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(56) : error C2249: 'ios::streampos' : no accessible path to private typedef declared in virtual base 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(43) : see declaration of 'ios::streampos'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(57) : error C2249: 'ios::streampos' : no accessible path to private typedef declared in virtual base 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(43) : see declaration of 'ios::streampos'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(58) : error C2249: 'ios::streamoff' : no accessible path to private typedef declared in virtual base 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(44) : see declaration of 'ios::streamoff'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(58) : error C2039: 'seekdir' : is not a member of 'ios_base'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(30) : see declaration of 'ios_base'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(58) : error C2061: syntax error : identifier 'seekdir'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(62) : error C2062: type 'int' unexpected
1>d:\panda3d-1.8.0\include\parser-inc\iostream(62) : error C2238: unexpected token(s) preceding ';'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(63) : error C2249: 'ios::streampos' : no accessible path to private typedef declared in virtual base 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(43) : see declaration of 'ios::streampos'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(64) : error C2249: 'ios::streampos' : no accessible path to private typedef declared in virtual base 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(43) : see declaration of 'ios::streampos'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(65) : error C2249: 'ios::streamoff' : no accessible path to private typedef declared in virtual base 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(44) : see declaration of 'ios::streamoff'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(65) : error C2039: 'seekdir' : is not a member of 'ios_base'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(30) : see declaration of 'ios_base'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(65) : error C2061: syntax error : identifier 'seekdir'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(69) : error C2062: type 'void' unexpected
1>d:\panda3d-1.8.0\include\parser-inc\iostream(69) : error C2238: unexpected token(s) preceding ';'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(74) : error C2514: 'ofstream' : class has no constructors
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(72) : see declaration of 'ofstream'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(74) : error C2056: illegal expression
1>d:\panda3d-1.8.0\include\parser-inc\iostream(74) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\parser-inc\iostream(79) : error C2514: 'ifstream' : class has no constructors
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(77) : see declaration of 'ifstream'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(79) : error C2056: illegal expression
1>d:\panda3d-1.8.0\include\parser-inc\iostream(79) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\parser-inc\iostream(84) : error C2514: 'fstream' : class has no constructors
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(82) : see declaration of 'fstream'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(84) : error C2056: illegal expression
1>d:\panda3d-1.8.0\include\parser-inc\iostream(84) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\parser-inc\stdtypedefs.h(25) : error C2371: 'off_t' : redefinition; different basic types
1>        c:\program files\microsoft visual studio 9.0\vc\include\sys\types.h(95) : see declaration of 'off_t'
1>d:\panda3d-1.8.0\include\parser-inc\stdtypedefs.h(26) : error C2371: 'time_t' : redefinition; different basic types
1>        c:\program files\microsoft visual studio 9.0\vc\include\crtdefs.h(582) : see declaration of 'time_t'
1>d:\panda3d-1.8.0\include\parser-inc\stdtypedefs.h(29) : error C2371: 'FILE' : redefinition; different basic types
1>        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(69) : see declaration of 'FILE'
1>d:\panda3d-1.8.0\include\parser-inc\stdtypedefs.h(41) : warning C4005: 'NULL' : macro redefinition
1>        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(123) : see previous definition of 'NULL'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(1865) : error C2664: '_CrtDbgReportW' : cannot convert parameter 4 from 'void *' to 'const wchar_t *'
1>        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(1890) : error C2664: '_CrtDbgReportW' : cannot convert parameter 4 from 'void *' to 'const wchar_t *'
1>        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(2137) : error C2664: '_CrtDbgReportW' : cannot convert parameter 4 from 'void *' to 'const wchar_t *'
1>        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(2172) : error C2664: '_CrtDbgReportW' : cannot convert parameter 4 from 'void *' to 'const wchar_t *'
1>        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(2420) : error C2664: '_CrtDbgReportW' : cannot convert parameter 4 from 'void *' to 'const wchar_t *'
1>        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(2454) : error C2664: '_CrtDbgReportW' : cannot convert parameter 4 from 'void *' to 'const wchar_t *'
1>        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(107) : error C2872: 'ios' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(40) : ios'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(705) : std::ios'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(107) : error C2248: 'ios_base::openmode' : cannot access private enum declared in class 'ios_base'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(37) : see declaration of 'ios_base::openmode'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(30) : see declaration of 'ios_base'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(108) : error C2872: 'ios' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(40) : ios'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(705) : std::ios'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(108) : error C2039: 'fmtflags' : is not a member of 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(108) : error C2146: syntax error : missing ';' before identifier 'ios_fmtflags'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(108) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(108) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(109) : error C2872: 'ios' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(40) : ios'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(705) : std::ios'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(109) : error C2039: 'iostate' : is not a member of 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(109) : error C2146: syntax error : missing ';' before identifier 'ios_iostate'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(109) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(109) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(110) : error C2872: 'ios' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(40) : ios'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(705) : std::ios'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(110) : error C2039: 'seekdir' : is not a member of 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(110) : error C2146: syntax error : missing ';' before identifier 'ios_seekdir'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(110) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(110) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\mutexwin32impl.i(23) : error C3861: 'DeleteCriticalSection': identifier not found
1>d:\panda3d-1.8.0\include\mutexwin32impl.i(33) : error C3861: 'EnterCriticalSection': identifier not found
1>d:\panda3d-1.8.0\include\mutexwin32impl.i(43) : error C3861: 'TryEnterCriticalSection': identifier not found
1>d:\panda3d-1.8.0\include\mutexwin32impl.i(53) : error C3861: 'LeaveCriticalSection': identifier not found
1>d:\panda3d-1.8.0\include\parser-inc\map(33) : error C2872: 'pair' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\pair(24) : pair'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\utility(38) : std::pair'
1>        d:\panda3d-1.8.0\include\parser-inc\map(47) : see reference to class template instantiation 'map<key,element,compare>' being compiled
1>d:\panda3d-1.8.0\include\parser-inc\map(33) : error C2872: 'pair' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\pair(24) : pair'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\utility(38) : std::pair'
1>d:\panda3d-1.8.0\include\parser-inc\map(33) : error C2872: 'pair' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\pair(24) : pair'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\utility(38) : std::pair'
1>        d:\panda3d-1.8.0\include\memoryhook.h(98) : see reference to class template instantiation 'map<key,element>' being compiled
1>        with
1>        [
1>            key=size_t,
1>            element=DeletedBufferChain *
1>        ]
1>d:\panda3d-1.8.0\include\parser-inc\map(33) : error C2872: 'pair' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\pair(24) : pair'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\utility(38) : std::pair'
1>d:\panda3d-1.8.0\include\typeregistry.h(45) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\string(42) : basic_string<ctype> string'
1>        with
1>        [
1>            ctype=char
1>        ]
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\panda3d-1.8.0\include\typeregistry.h(46) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\string(42) : basic_string<ctype> string'
1>        with
1>        [
1>            ctype=char
1>        ]
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\panda3d-1.8.0\include\typeregistry.h(49) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\string(42) : basic_string<ctype> string'
1>        with
1>        [
1>            ctype=char
1>        ]
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\panda3d-1.8.0\include\typeregistry.h(52) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\string(42) : basic_string<ctype> string'
1>        with
1>        [
1>            ctype=char
1>        ]
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\panda3d-1.8.0\include\typeregistry.h(55) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\string(42) : basic_string<ctype> string'
1>        with
1>        [
1>            ctype=char
1>        ]
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\panda3d-1.8.0\include\typeregistry.h(78) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(708) : std::ostream'
1>d:\panda3d-1.8.0\include\typeregistry.h(94) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(708) : std::ostream'
1>d:\panda3d-1.8.0\include\typeregistry.h(95) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(708) : std::ostream'
1>d:\panda3d-1.8.0\include\typeregistry.h(103) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\string(42) : basic_string<ctype> string'
1>        with
1>        [
1>            ctype=char
1>        ]
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\panda3d-1.8.0\include\parser-inc\map(33) : error C2872: 'pair' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\pair(24) : pair'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\utility(38) : std::pair'
1>        d:\panda3d-1.8.0\include\typeregistry.h(104) : see reference to class template instantiation 'map<key,element>' being compiled
1>        with
1>        [
1>            key=string,
1>            element=TypeRegistryNode *
1>        ]
1>d:\panda3d-1.8.0\include\parser-inc\map(33) : error C2872: 'pair' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\pair(24) : pair'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\utility(38) : std::pair'
1>d:\panda3d-1.8.0\include\typeregistry.h(119) : error C2039: 'set' : is not a member of 'std'
1>d:\panda3d-1.8.0\include\typeregistry.h(119) : error C2143: syntax error : missing ')' before '<'
1>d:\panda3d-1.8.0\include\typeregistry.h(119) : error C2143: syntax error : missing ';' before '<'
1>d:\panda3d-1.8.0\include\typeregistry.h(119) : error C2059: syntax error : ')'
1>d:\panda3d-1.8.0\include\typehandle.h(118) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\string(42) : basic_string<ctype> string'
1>        with
1>        [
1>            ctype=char
1>        ]
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\panda3d-1.8.0\include\typehandle.h(131) : error C2039: 'set' : is not a member of 'std'
1>d:\panda3d-1.8.0\include\typehandle.h(131) : error C2143: syntax error : missing ')' before '<'
1>d:\panda3d-1.8.0\include\typehandle.h(131) : error C2143: syntax error : missing ';' before '<'
1>d:\panda3d-1.8.0\include\typehandle.h(131) : error C2059: syntax error : ')'
1>d:\panda3d-1.8.0\include\typehandle.h(131) : error C2238: unexpected token(s) preceding ';'
1>d:\panda3d-1.8.0\include\typehandle.h(144) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(708) : std::ostream'
1>d:\panda3d-1.8.0\include\typehandle.h(157) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(708) : std::ostream'
1>d:\panda3d-1.8.0\include\typehandle.h(157) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(708) : std::ostream'
1>d:\panda3d-1.8.0\include\typehandle.h(162) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(708) : std::ostream'
1>d:\panda3d-1.8.0\include\typehandle.h(162) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(708) : std::ostream'
1>d:\panda3d-1.8.0\include\typehandle.i(131) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\string(42) : basic_string<ctype> string'
1>        with
1>        [
1>            ctype=char
1>        ]
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\panda3d-1.8.0\include\typehandle.i(263) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(708) : std::ostream'
1>d:\panda3d-1.8.0\include\typehandle.i(264) : fatal error C1903: unable to recover from previous error(s); stopping compilation
1>tut_asteroids.cpp
1>d:\panda3d-1.8.0\include\parser-inc\iostream(32) : error C2059: syntax error : 'enum [tag]'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(32) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
1>d:\panda3d-1.8.0\include\parser-inc\iostream(42) : error C2062: type 'long' unexpected
1>d:\panda3d-1.8.0\include\parser-inc\iostream(42) : error C2238: unexpected token(s) preceding ';'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(54) : error C2062: type 'void' unexpected
1>d:\panda3d-1.8.0\include\parser-inc\iostream(54) : error C2238: unexpected token(s) preceding ';'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(56) : error C2249: 'ios::streampos' : no accessible path to private typedef declared in virtual base 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(43) : see declaration of 'ios::streampos'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(57) : error C2249: 'ios::streampos' : no accessible path to private typedef declared in virtual base 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(43) : see declaration of 'ios::streampos'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(58) : error C2249: 'ios::streamoff' : no accessible path to private typedef declared in virtual base 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(44) : see declaration of 'ios::streamoff'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(58) : error C2039: 'seekdir' : is not a member of 'ios_base'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(30) : see declaration of 'ios_base'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(58) : error C2061: syntax error : identifier 'seekdir'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(62) : error C2062: type 'int' unexpected
1>d:\panda3d-1.8.0\include\parser-inc\iostream(62) : error C2238: unexpected token(s) preceding ';'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(63) : error C2249: 'ios::streampos' : no accessible path to private typedef declared in virtual base 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(43) : see declaration of 'ios::streampos'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(64) : error C2249: 'ios::streampos' : no accessible path to private typedef declared in virtual base 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(43) : see declaration of 'ios::streampos'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(65) : error C2249: 'ios::streamoff' : no accessible path to private typedef declared in virtual base 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(44) : see declaration of 'ios::streamoff'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(65) : error C2039: 'seekdir' : is not a member of 'ios_base'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(30) : see declaration of 'ios_base'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(65) : error C2061: syntax error : identifier 'seekdir'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(69) : error C2062: type 'void' unexpected
1>d:\panda3d-1.8.0\include\parser-inc\iostream(69) : error C2238: unexpected token(s) preceding ';'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(74) : error C2514: 'ofstream' : class has no constructors
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(72) : see declaration of 'ofstream'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(74) : error C2056: illegal expression
1>d:\panda3d-1.8.0\include\parser-inc\iostream(74) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\parser-inc\iostream(79) : error C2514: 'ifstream' : class has no constructors
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(77) : see declaration of 'ifstream'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(79) : error C2056: illegal expression
1>d:\panda3d-1.8.0\include\parser-inc\iostream(79) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\parser-inc\iostream(84) : error C2514: 'fstream' : class has no constructors
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(82) : see declaration of 'fstream'
1>d:\panda3d-1.8.0\include\parser-inc\iostream(84) : error C2056: illegal expression
1>d:\panda3d-1.8.0\include\parser-inc\iostream(84) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\parser-inc\stdtypedefs.h(25) : error C2371: 'off_t' : redefinition; different basic types
1>        c:\program files\microsoft visual studio 9.0\vc\include\sys\types.h(95) : see declaration of 'off_t'
1>d:\panda3d-1.8.0\include\parser-inc\stdtypedefs.h(26) : error C2371: 'time_t' : redefinition; different basic types
1>        c:\program files\microsoft visual studio 9.0\vc\include\crtdefs.h(582) : see declaration of 'time_t'
1>d:\panda3d-1.8.0\include\parser-inc\stdtypedefs.h(29) : error C2371: 'FILE' : redefinition; different basic types
1>        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(69) : see declaration of 'FILE'
1>d:\panda3d-1.8.0\include\parser-inc\stdtypedefs.h(41) : warning C4005: 'NULL' : macro redefinition
1>        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(123) : see previous definition of 'NULL'
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(1865) : error C2664: '_CrtDbgReportW' : cannot convert parameter 4 from 'void *' to 'const wchar_t *'
1>        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(1890) : error C2664: '_CrtDbgReportW' : cannot convert parameter 4 from 'void *' to 'const wchar_t *'
1>        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(2137) : error C2664: '_CrtDbgReportW' : cannot convert parameter 4 from 'void *' to 'const wchar_t *'
1>        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(2172) : error C2664: '_CrtDbgReportW' : cannot convert parameter 4 from 'void *' to 'const wchar_t *'
1>        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(2420) : error C2664: '_CrtDbgReportW' : cannot convert parameter 4 from 'void *' to 'const wchar_t *'
1>        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>c:\program files\microsoft visual studio 9.0\vc\include\xlocale(2454) : error C2664: '_CrtDbgReportW' : cannot convert parameter 4 from 'void *' to 'const wchar_t *'
1>        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(107) : error C2872: 'ios' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(40) : ios'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(705) : std::ios'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(107) : error C2248: 'ios_base::openmode' : cannot access private enum declared in class 'ios_base'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(37) : see declaration of 'ios_base::openmode'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(30) : see declaration of 'ios_base'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(108) : error C2872: 'ios' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(40) : ios'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(705) : std::ios'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(108) : error C2039: 'fmtflags' : is not a member of 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(108) : error C2146: syntax error : missing ';' before identifier 'ios_fmtflags'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(108) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(108) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(109) : error C2872: 'ios' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(40) : ios'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(705) : std::ios'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(109) : error C2039: 'iostate' : is not a member of 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(109) : error C2146: syntax error : missing ';' before identifier 'ios_iostate'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(109) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(109) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(110) : error C2872: 'ios' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(40) : ios'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(705) : std::ios'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(110) : error C2039: 'seekdir' : is not a member of 'ios'
1>        d:\panda3d-1.8.0\include\parser-inc\iostream(40) : see declaration of 'ios'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(110) : error C2146: syntax error : missing ';' before identifier 'ios_seekdir'
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(110) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\dtoolbase_cc.h(110) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\panda3d-1.8.0\include\mutexwin32impl.i(23) : error C3861: 'DeleteCriticalSection': identifier not found
1>d:\panda3d-1.8.0\include\mutexwin32impl.i(33) : error C3861: 'EnterCriticalSection': identifier not found
1>d:\panda3d-1.8.0\include\mutexwin32impl.i(43) : error C3861: 'TryEnterCriticalSection': identifier not found
1>d:\panda3d-1.8.0\include\mutexwin32impl.i(53) : error C3861: 'LeaveCriticalSection': identifier not found
1>d:\panda3d-1.8.0\include\parser-inc\map(33) : error C2872: 'pair' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\pair(24) : pair'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\utility(38) : std::pair'
1>        d:\panda3d-1.8.0\include\parser-inc\map(47) : see reference to class template instantiation 'map<key,element,compare>' being compiled
1>d:\panda3d-1.8.0\include\parser-inc\map(33) : error C2872: 'pair' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\pair(24) : pair'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\utility(38) : std::pair'
1>d:\panda3d-1.8.0\include\parser-inc\map(33) : error C2872: 'pair' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\pair(24) : pair'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\utility(38) : std::pair'
1>        d:\panda3d-1.8.0\include\memoryhook.h(98) : see reference to class template instantiation 'map<key,element>' being compiled
1>        with
1>        [
1>            key=size_t,
1>            element=DeletedBufferChain *
1>        ]
1>d:\panda3d-1.8.0\include\parser-inc\map(33) : error C2872: 'pair' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\pair(24) : pair'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\utility(38) : std::pair'
1>d:\panda3d-1.8.0\include\typeregistry.h(45) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\string(42) : basic_string<ctype> string'
1>        with
1>        [
1>            ctype=char
1>        ]
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\panda3d-1.8.0\include\typeregistry.h(46) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\string(42) : basic_string<ctype> string'
1>        with
1>        [
1>            ctype=char
1>        ]
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\panda3d-1.8.0\include\typeregistry.h(49) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\string(42) : basic_string<ctype> string'
1>        with
1>        [
1>            ctype=char
1>        ]
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\panda3d-1.8.0\include\typeregistry.h(52) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\string(42) : basic_string<ctype> string'
1>        with
1>        [
1>            ctype=char
1>        ]
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\panda3d-1.8.0\include\typeregistry.h(55) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\string(42) : basic_string<ctype> string'
1>        with
1>        [
1>            ctype=char
1>        ]
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\panda3d-1.8.0\include\typeregistry.h(78) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(708) : std::ostream'
1>d:\panda3d-1.8.0\include\typeregistry.h(94) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(708) : std::ostream'
1>d:\panda3d-1.8.0\include\typeregistry.h(95) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(708) : std::ostream'
1>d:\panda3d-1.8.0\include\typeregistry.h(103) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\string(42) : basic_string<ctype> string'
1>        with
1>        [
1>            ctype=char
1>        ]
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\panda3d-1.8.0\include\parser-inc\map(33) : error C2872: 'pair' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\pair(24) : pair'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\utility(38) : std::pair'
1>        d:\panda3d-1.8.0\include\typeregistry.h(104) : see reference to class template instantiation 'map<key,element>' being compiled
1>        with
1>        [
1>            key=string,
1>            element=TypeRegistryNode *
1>        ]
1>d:\panda3d-1.8.0\include\parser-inc\map(33) : error C2872: 'pair' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\pair(24) : pair'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\utility(38) : std::pair'
1>d:\panda3d-1.8.0\include\typeregistry.h(119) : error C2039: 'set' : is not a member of 'std'
1>d:\panda3d-1.8.0\include\typeregistry.h(119) : error C2143: syntax error : missing ')' before '<'
1>d:\panda3d-1.8.0\include\typeregistry.h(119) : error C2143: syntax error : missing ';' before '<'
1>d:\panda3d-1.8.0\include\typeregistry.h(119) : error C2059: syntax error : ')'
1>d:\panda3d-1.8.0\include\typehandle.h(118) : error C2872: 'string' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\string(42) : basic_string<ctype> string'
1>        with
1>        [
1>            ctype=char
1>        ]
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\xstring(2210) : std::string'
1>d:\panda3d-1.8.0\include\typehandle.h(131) : error C2039: 'set' : is not a member of 'std'
1>d:\panda3d-1.8.0\include\typehandle.h(131) : error C2143: syntax error : missing ')' before '<'
1>d:\panda3d-1.8.0\include\typehandle.h(131) : error C2143: syntax error : missing ';' before '<'
1>d:\panda3d-1.8.0\include\typehandle.h(131) : error C2059: syntax error : ')'
1>d:\panda3d-1.8.0\include\typehandle.h(131) : error C2238: unexpected token(s) preceding ';'
1>d:\panda3d-1.8.0\include\typehandle.h(144) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(708) : std::ostream'
1>d:\panda3d-1.8.0\include\typehandle.h(157) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(708) : std::ostream'
1>d:\panda3d-1.8.0\include\typehandle.h(157) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'
1>        or       'c:\program files\microsoft visual studio 9.0\vc\include\iosfwd(708) : std::ostream'
1>d:\panda3d-1.8.0\include\typehandle.h(162) : error C2872: 'ostream' : ambiguous symbol
1>        could be 'd:\panda3d-1.8.0\include\parser-inc\iostream(52) : ostream'

Hi

I think there are still problems you can have when compiling in Debug mode, so try switching to Release and remove the NDEBUG from the Properties C/C++ Preprocessor line.