C++ compiling errors at making a Window Framework

Hi,
I’m new to the Forums, so i hope i posted this in the right section. Here is my problem: I’m currently at the Panda3D manual and I’m making my first blank Window with Panda3D. I opened a new Console Application in Microsoft Visual Studio 2008 and made a new .cpp file, then i did everything who was in the Tutorial, but i alway get these errors:

1>c:\programfiler\panda3d-1.6.2\include\nodepath.i(2281) : error C2065: 'Py_None' : undeclared identifier
1>c:\programfiler\panda3d-1.6.2\include\nodepath.i(2281) : error C3861: 'Py_INCREF': identifier not found
1>c:\programfiler\panda3d-1.6.2\include\nodepath.i(2282) : error C2065: 'Py_None' : undeclared identifier
1>c:\programfiler\panda3d-1.6.2\include\asynctask.i(248) : error C3861: 'Py_XINCREF': identifier not found
1>c:\programfiler\panda3d-1.6.2\include\asynctask.i(249) : error C3861: 'Py_XDECREF': identifier not found
1>c:\programfiler\panda3d-1.6.2\include\asynctask.i(265) : error C3861: 'Py_XINCREF': identifier not found
1>c:\programfiler\panda3d-1.6.2\include\asynctask.i(268) : error C2065: 'Py_None' : undeclared identifier
1>c:\programfiler\panda3d-1.6.2\include\asynctask.i(268) : error C3861: 'Py_INCREF': identifier not found
1>c:\programfiler\panda3d-1.6.2\include\asynctask.i(269) : error C2065: 'Py_None' : undeclared identifier

Can someone help me?

Hmm, looks like a minor mistake in the Panda headers. Try including <Python.h> before you include any Panda header files.

David

Ok, i found the solution for the errors, but now I am getting again errors:

1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall BitMask<unsigned int,32>::~BitMask<unsigned int,32>(void)" (__imp_??1?$BitMask@I$0CA@@@QAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class BitMask<unsigned int,32> __cdecl BitMask<unsigned int,32>::bit(int)" (__imp_?bit@?$BitMask@I$0CA@@@SA?AV1@H@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class BitMask<unsigned int,32> __cdecl BitMask<unsigned int,32>::lower_on(int)" (__imp_?lower_on@?$BitMask@I$0CA@@@SA?AV1@H@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall PandaFramework::main_loop(void)" (__imp_?main_loop@PandaFramework@@QAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class WindowFramework * __thiscall PandaFramework::open_window(void)" (__imp_?open_window@PandaFramework@@QAEPAVWindowFramework@@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall PandaFramework::close_framework(void)" (__imp_?close_framework@PandaFramework@@QAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall PandaFramework::open_framework(int &,char * * &)" (__imp_?open_framework@PandaFramework@@QAEXAAHAAPAPAD@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall PandaFramework::~PandaFramework(void)" (__imp_??1PandaFramework@@UAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall PandaFramework::PandaFramework(void)" (__imp_??0PandaFramework@@QAE@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall WindowFramework::setup_trackball(void)" (__imp_?setup_trackball@WindowFramework@@QAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall WindowFramework::enable_keyboard(void)" (__imp_?enable_keyboard@WindowFramework@@QAEXXZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl Notify::out(void)" (__imp_?out@Notify@@SAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@XZ)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall PandaFramework::set_window_title(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?set_window_title@PandaFramework@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall TypeHandle::TypeHandle(void)" (__imp_??0TypeHandle@@QAE@XZ)

Yeah! It works now! I forgot to add 2 folders to the Inlcude “section”.
After this I took the NDEBUG thing out of the project settings and re-added all the .lib’s.