Compile errors for OdeTriMeshData/OdeTriMeshGeom

I’m trying to use OdeTriMeshData and OdeTriMeshGeom, but I get compile errors stating that odetrimeshdata_cat is undeclared in files odeTriMeshData.I and odeTriMeshGeom.I.

In my code I just include odeTriMeshData.h and odeTriMeshGeom.h.

I havent’ had any problems with OdeBoxGeom.
I’m kind of lost with this… any suggestions on what’s going on here?

It just means that odeTriMeshData.h and odeTriMeshGeom.h are incomplete, and don’t themselves include the full set of header files that they actually rely on. This is a common mistake in C++.

The easiest workaround is to include the necessary header files yourself before you include odeTriMeshData.h and/or odeTriMeshGeom.h. In this case, it would be config_ode.h in order to get the declaration for odetrimeshdata_cat.

David

Thanks David. :slight_smile: