I’ve been recently getting some errors when trying to compile a code in Microsoft Visual Studio 2008 using C++. I’m getting 79 errors! And using DirectX 9.0
And these are the first lines of the Output windows.
Compiling...
main.cpp
c:\panda3d-1.6.2\include\parser-inc\iostream(32) : error C2059: syntax error : 'enum [tag]'
c:\panda3d-1.6.2\include\parser-inc\iostream(32) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
c:\panda3d-1.6.2\include\parser-inc\iostream(42) : error C2062: type 'long' unexpected
c:\panda3d-1.6.2\include\parser-inc\iostream(42) : error C2238: unexpected token(s) preceding ';'
c:\panda3d-1.6.2\include\parser-inc\iostream(54) : error C2062: type 'void' unexpected
c:\panda3d-1.6.2\include\parser-inc\iostream(54) : error C2238: unexpected token(s) preceding ';'
c:\panda3d-1.6.2\include\parser-inc\iostream(56) : error C2249: 'ios::streampos' : no accessible path to private typedef declared in virtual base 'ios'
c:\panda3d-1.6.2\include\parser-inc\iostream(43) : see declaration of 'ios::streampos'
c:\panda3d-1.6.2\include\parser-inc\iostream(40) : see declaration of 'ios'
c:\panda3d-1.6.2\include\parser-inc\iostream(57) : error C2249: 'ios::streampos' : no accessible path to private typedef declared in virtual base 'ios'
c:\panda3d-1.6.2\include\parser-inc\iostream(43) : see declaration of 'ios::streampos'
c:\panda3d-1.6.2\include\parser-inc\iostream(40) : see declaration of 'ios'
c:\panda3d-1.6.2\include\parser-inc\iostream(58) : error C2249: 'ios::streamoff' : no accessible path to private typedef declared in virtual base 'ios'
c:\panda3d-1.6.2\include\parser-inc\iostream(44) : see declaration of 'ios::streamoff'
c:\panda3d-1.6.2\include\parser-inc\iostream(40) : see declaration of 'ios'
c:\panda3d-1.6.2\include\parser-inc\iostream(58) : error C2039: 'seekdir' : is not a member of 'ios_base'
c:\panda3d-1.6.2\include\parser-inc\iostream(30) : see declaration of 'ios_base'
c:\panda3d-1.6.2\include\parser-inc\iostream(58) : error C2061: syntax error : identifier 'seekdir'
c:\panda3d-1.6.2\include\parser-inc\iostream(62) : error C2062: type 'int' unexpected
c:\panda3d-1.6.2\include\parser-inc\iostream(62) : error C2238: unexpected token(s) preceding ';'
Please, help me, because I really needs to begin learning how to use Panda3D.
Are you sure those are the same errors? The errors above sure look like there are files included from parser-inc, while that shouldn’t be. Try temporarily renaming c:\panda3d-1.6.2\include\parser-inc\ to something different to be certain that this is the issue.
Okay, this means it got one step futher.
python25.lib is located in C:\Panda3D-1.6.2\libs so try adding that to your library path.
Dunno why you need to link to Python at all, though, try to link to pystub instead.