Shapes dont seem to quite be shapes... (SOLVED)

Today I started messing with shape defs in my game, but I'm getting errors I wasn't expecting... for instance when I make a polygon def and try to access its vertices, I get:
Quote:
main.cpp:1095: error: ‘class std::vector<b2PolygonDef, std::allocator<b2PolygonDef> >’ has no member named ‘vertexCount’

As I understand it, it should have vertex count... I am including Box2D.h, and have it linked to the library... does anyone know what I'm doing wrong?
you have an instance of a vector of b2PolygonDef, not a b2PolygonDef itself. you need to use front(), or [] etc.
Your good. Yea, I realized I had forgot the [] shortly before I came back here.

Original thread: https://box2d.org/forum/viewtopic.php?t=651