G
G
German2019-01-28 18:49:14
C++ / C#
German, 2019-01-28 18:49:14

Box2D not compiling in Visual Studio 2017?

Did according to this article.
.lib files are there
1006636d1548688346
The project is configured
5c4fd5a4a6f4f295667316.png5c4fd5b02eb19507516709.png5c4fd5bc76139863769137.png
However, errors are climbing
5c4fd5d78064f607457103.png

Compilation errors with text

неразрешенный внешний символ ""public: virtual void __thiscall b2PolygonShape::ComputeMass(struct b2MassData *,float)const " ([email protected]@@[email protected]@[email protected])"
неразрешенный внешний символ ""public: virtual void __thiscall b2PolygonShape::ComputeAABB(struct b2AABB *,struct b2Transform const &,int)const " ([email protected]@@[email protected]@[email protected]@[email protected])"
неразрешенный внешний символ ""public: virtual bool __thiscall b2PolygonShape::RayCast(struct b2RayCastOutput *,struct b2RayCastInput const &,struct b2Transform const &,int)const " ([email protected]@@[email protected]@[email protected]@[email protected]@[email protected])"
""public: virtual bool __thiscall b2PolygonShape::TestPoint(struct b2Transform const &,struct b2Vec2 const &)const " ([email protected]@@[email protected]@[email protected]@@Z)"
неразрешенный внешний символ ""public: void __thiscall b2PolygonShape::SetAsBox(float,float)" ([email protected]@@[email protected])"
неразрешенный внешний символ ""public: virtual int __thiscall b2PolygonShape::GetChildCount(void)const " ([email protected]@@UBEHXZ)"
неразрешенный внешний символ ""public: virtual class b2Shape * __thiscall b2PolygonShape::Clone(class b2BlockAllocator *)const " ([email protected]@@[email protected]@[email protected]@@Z)"
неразрешенный внешний символ ""public: class b2Fixture * __thiscall b2Body::CreateFixture(struct b2FixtureDef const *)" ([email protected]@@[email protected]@[email protected]@@Z)"
неразрешенный внешний символ ""public: class b2Fixture * __thiscall b2Body::CreateFixture(class b2Shape const *,float)" ([email protected]@@[email protected]@[email protected]@[email protected])"
неразрешенный внешний символ ""public: void __thiscall b2World::Step(float,int,int)" ([email protected]@@[email protected])"
неразрешенный внешний символ ""public: class b2Body * __thiscall b2World::CreateBody(struct b2BodyDef const *)" ([email protected]@@[email protected]@[email protected]@@Z)"
неразрешенный внешний символ ""public: __thiscall b2World::~b2World(void)" ([email protected]@[email protected])"
неразрешенный внешний символ ""public: __thiscall b2World::b2World(struct b2Vec2 const &)" ([email protected]@[email protected]@@@Z)"

unresolved external elements: 13
How to solve?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
The_Nex, 2019-01-28
@The_Nex

1) Reupload the screenshots.
2) From my own experience, I can say that when dynamically linking Box2D, you need to specify "-lBox2D" in the compilation command.
3) .lib Says that you want to statically link the entire lib into the executable file, try checking the integrity of the package.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question