erincatto / box2d

Box2D is a 2D physics engine for games
https://box2d.org
MIT License
8.09k stars 1.52k forks source link

Unresolved External Symbol Error When Using cmake For Visual Studio 2019 #660

Closed Alsira closed 3 years ago

Alsira commented 3 years ago

I get an error after building using cmake for this project. The function that the linker cannot find is GetUserData function in the b2Body class. Everything else works fine, but this function breaks my project.

erincatto commented 3 years ago

I think you mean b2Body::SetUserData. This function is no longer needed and was removed in #659.

flarn2006 commented 3 years ago

It's needed if you want code that's more than a couple weeks old to compile without modification. See #663.