Using Box2D in C++Builder Applications

From RAD Studio
Jump to: navigation, search

Go Up to Box2D

You can find the Box2D header files at C:\Program Files (x86)\Embarcadero\Studio\22.0\include\Box2D.

See the manual and the API documentation to learn how to use Box2D in C++ applications.

To link your application with the Box2D library:

  • For desktop platforms you can link to the Box2D library via a #pragma comment:
#pragma comment(lib, "Box2D")
  • For mobile mobile platforms, select Project > Options > C++ Linker and add FlatBox2D to the Additionally linked libraries option.

See Also