Interrogate was working well. However, after migrating to Panda3D 1.10.0 (from git) it’s started throwing very strange errors:
Interrogating base
*** Error in config_dna.h near line 27, column 46:
NotifyCategoryGetCategory_dna has conflicting declaration as class NotifyCategor
yGetCategory_dna {
public:
NotifyCategoryGetCategory_dna(void);
static NotifyCategory *get_category(void);
}
Error parsing file: 'dnabase.h'
This is dnabase.h
#pragma once
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <pandabase.h>
#include <notifyCategoryProxy.h>
#pragma warning (disable : 4273)
#pragma warning (disable : 4275)
#if (defined(WIN32_VC) || defined(WIN64_VC)) && !defined(CPPPARSER) && !defined(LINK_ALL_STATIC)
#ifdef BUILDING_DNA
#define EXPCL_DNA __declspec(dllexport)
#define EXPTP_DNA
#else
#define EXPCL_DNA __declspec(dllimport)
#define EXPTP_DNA extern
#endif
#else
#define EXPCL_DNA
#define EXPTP_DNA
#endif
NotifyCategoryDecl(dna, EXPCL_DNA, EXPTP_DNA);
extern void init_libpandadna();
The command:
The following command return a non-zero value (1): C:\panda3d-1.10.0\bin\interrogate -D__inline -DCPPPARSER -DP3_INTERROGATE=1 -D__cplusplus -fnames -string -refcount -assert -S C:\panda3d-1.10.0\include\parser-inc -S C:\panda3d-1.10.0\include -I C:\panda3d-1.10.0\include -Isrc/base -Isrc/suit -Isrc/components -srcdir src/base -oc built10/base_igate.cxx -od built10/base.in -python-native -DCPPPARSER -D__STDC__=1 -D__cplusplus -D__inline -longlong __int64 -D_X86_ -DWIN32_VC -DWIN32 -module libpandadna -library base -Dvolatile= config_dna.h dnabase.h DNALoader.h DNAStorage.h