[Solved]Panda3D with Visual Studio 2008/2005?

I just tried to use the current Panda3D SDK (1.7.0) with a “naked” Visual Studio Win32 console application.
I added

#include "pandaFramework.h"
#include "pandaSystem.h"

but immediately, I encountered several difficulties, such as (just some examples):

  • undefined macros: __published
  • redefinitions between Panda3D and Microsoft SDK: typedef int off_t (parser-inc\stdtypedefs.h) <==> typedef long off_t (Microsoft Visual Studio 9.0\VC\include\wchar.h)

Should it be possible to build with VS without any code changes in Panda3D SDK? Does anybody know a working configuration?
Why not delivering a working VS project (working with the free Express Edition) in Panda3D examples?

It should work out of the box with VS 2008. Take a look at this page for instructions:
panda3d.org/manual/index.php/H … tudio_2008

The link referes to a page without available C++ information.

Some more information:
The reported issues also occure if I use 1.6.2.
If it works on your computer:
Do you use another C+±Standard library and not “Microsoft Visual Studio 9.0\VC\include”?
You can use the /showIncludes option to see which include path for e.g. “assert.h” is used.

The page is available for C++ users, but not for Python users. You are obviously looking at the Python version of that page. Click the “C++” link at the top of that page.

I’m not using Windows myself, sorry - but the linked page contains a step-by-step description.

Sorry, but changing the language does not work on that site - not with Firefox 3.5, IE 8, Chrome :frowning:

Perhaps you can post the information if it works for you?

Really? Hm, do you perhaps have cookies disabled, or so?
This link should force it into the C++ language:
panda3d.org/manual/index.php?t … alLang=cxx

OK, the direct link works. Thanks.
The trick was, to use the Release, not the Debug, configuration :wink: