errors building interrogate database for 3rd party SDK

I am trying to build a module for the Steam SDK. I am getting syntax errors when compiling the module I’ve created which just has a few basic functions so far so I can become familiar with the interrogate process. For example in the SDK one line it gets stuck on is:

const GID_t k_GIDNil = 0xffffffffffffffffull;

When compiling Panda I get the error:

[T8] Building Interrogate database built_spacebullet/pandac/input/libpandasteam.in
pandabullet.cxx
            *** Error in /c/work/panda3d/thirdparty/win-libs-vc10/steam/include/steamtypes.h near line 98, column 1:
            syntax error, unexpected IDENTIFIER, expecting ','
Error parsing file: 'p3steam_composite1.cxx'
The following command returned a non-zero value: built_spacebullet\bin\interrogate -srcdir panda/src/steam -Ipanda/src/steam -Dvolatile -Dmutable -DCPPPARSER -D__STDC__=1 -D__cplusplus -D__inline -longlong __int64 -D_X86_ -DWIN32_VC -DWIN32 -D_WIN32 -D_MSC_VER=1600 -D"_declspec(param)=" -D_near -D_far -D__near -D__far -D__stdcall -DNDEBUG -oc built_spacebullet/tmp/libpandasteam_igate.cxx -od built_spacebullet/pandac/input/libpandasteam.in -fnames -string -refcount -assert -python-native -Sbuilt_spacebullet/include/parser-inc -Ipanda/src/steam -Sbuilt_spacebullet/tmp -Sbuilt_spacebullet/include -SC:\work\panda3d\thirdparty\win-python/include -Sthirdparty/win-libs-vc10/eigen\include -Sthirdparty/win-libs-vc10/steam/include -Sthirdparty/win-libs-vc10/extras/include -DBUILDING_PANDASTEAM -module pandasteam -library libpandasteam config_steam.h p3steam_composite1.cxx pandaSteamUser.h

Any idea what might be going wrong?
I can’t redistribute the code, but there is a pretty similar version here:
https://github.com/ValveSoftware/source-sdk-2013/tree/master/sp/src/public/steam

I think that interrogate is parsing the original 3rd-party headers. Interrogate should not do. instead you should provide dummy header files which just contain forward declarations of the classes etc. of the 3rd-party lib. You need to put only those classes in the dummy headers which you use in your Panda3D module headers. The dummy headers are usually places in a “parser-inc” directory.

Have a look at the Panda3D/dtool/src/parser-inc directory. There you will find many examples of such dummy headers for interrogate.

Ah, that makes a lot more sense. Thank you.