- 郝怜菡用户2024-11-22[[{"txt": "\u5bf9\u4e8eC/C++\u624d\u5165\u95e8\u7684\u540c\u5b66\uff0c\u8981\u60f3\u4f7f\u7528\u4e00\u4e2a\u522b\u4eba\u5df2\u7ecf\u5f00\u53d1\u597d\u7684\u5f00\u6e90\u5e93\u5f80\u5f80\u90fd\u6709\u522b\u4eba\u7f16\u8bd1\u5b8c\u6210\u7684\uff0c\u73b0\u6210\u7684shared library\u548cstatic library\uff0c\u4e5f\u5c31\u662f\u901a\u4fd7\u7684.a\u548c.dll\u6587\u4ef6 \uff0c\u4f46\u5982\u679c\u53ea\u6709\u6e90\u7801\u800c\u6ca1\u6709\u73b0\u6210\u7684.a\u548c.dll\u5c31\u5b8c\u5168\u4e0d\u77e5\u9053\u600e\u4e48\u529e\u4e86\uff01\u597d\u5427\uff0c\u73b0\u5728\u6211\u5c31\u6559\u5927\u5bb6\u7528\u4e00\u4e2a\u7b80\u5355\u7684\u65b9\u6cd5\u6765\u5b8c\u6210\u5bf9\u5f00\u6e90\u5e93\u7684\u7f16\u8bd1\uff0c\u4ee5\u4e0b\u4ee5Box2D\u6e90\u7801\u4e3a\u4f8b\uff1a"}], [{"txt": ["\u5de5\u5177/\u539f\u6599"]}, {"txt": "eclipse \u6216\u5176\u4ed6\u4f60\u559c\u6b22\u7684IDE"}], [{"txt": ["\u65b9\u6cd5/\u6b65\u9aa4"]}, {"txt": "\u9996\u5148\uff0c\u6211\u4eec\u8981\u628aBox2D\u7684\u6e90\u7801\u62f7\u8d1d\u5230\u7f16\u8bd1\u5668\u7684include\u76ee\u5f55\u4e0b\uff0c\u7531\u4e8e\u5728\u4e0b\u4f7f\u7528\u7684\u662fmingw\u7f16\u8bd1\u5668\uff0c\u6240\u4ee5\u627e\u5230\u6240\u5728\u7f16\u8bd1\u5668\u7684\u76ee\u5f55\u5982\u56fe\uff0c\u76f4\u63a5\u62f7\u8d1d\u5230mingw\u7684include\u76ee\u5f55\u4e0b\u5373\u53ef\uff0c\u5982\u679c\u4e0d\u62f7\u8d1d\u7f16\u8bd1\u5668\u4f1a\u63d0\u793a\u627e\u4e0d\u5230\u5934\u6587\u4ef6"}, {"img": ["https://exp-picture.cdn.bcebos.com/05a320a23a42a07a44a5cd87673834bb18efc109.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1"]}, {"txt": "\u6253\u5f00eclipse\uff0c\u65b0\u5efa\u4e00\u4e2ac++\u5de5\u7a0b\uff0c\u5982\u56fe"}, {"img": ["https://exp-picture.cdn.bcebos.com/18aebc5f0c14c27b3e37f73d2a46b7b1eff9390e.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1"]}, {"txt": "\u5bfc\u5165Box2D\u7684\u6e90\u7801\uff1a\u53f3\u952e\u5de5\u7a0b->import->general->File System,\u70b9\u51fb\u4e0b\u4e00\u6b65\uff0c\u627e\u5230box2d\u6240\u5728\u7684\u6587\u4ef6\u5939\uff0c\u5bfc\u5165"}, {"img": ["https://exp-picture.cdn.bcebos.com/35f2224133bad341f4c89083427622bc7cc52c0e.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1", "https://exp-picture.cdn.bcebos.com/d4071b96b814f4d0b7b5b966cdfe474ec383230e.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1"]}, {"txt": "\u521b\u5efa\u597d\u5de5\u7a0b\u4e4b\u540e\u201c\u53f3\u952e\u201d\u70b9\u51fb\u5de5\u7a0b\u9009\u62e9Properties->C/C++ build->Setting->build Artifact \u00a0 \u9009\u62e9shaped library \u00a0\u70b9\u51fbok\u9000\u51fa\u9009\u9879\uff0c\u7136\u540e\u7f16\u8bd1\u5de5\u7a0b\u751f\u6210.dll\u6587\u4ef6\uff0c\u8ba9\u540e\u91cd\u590d\u4e0a\u4e00\u6b65\uff0c\u9009\u62e9static library\u751f\u6210.a\u6587\u4ef6 \u00a0\u7f16\u8bd1\u5b8c\u6210\u4e4b\u540e\u5728\u5de5\u7a0b\u76ee\u5f55\u4e0b\u7684Debug\u6587\u4ef6\u5939\u4e0b\u5c31\u53ef\u4ee5\u627e\u5230\u60f3\u8981\u7684\u6587\u4ef6\u4e86"}, {"img": ["https://exp-picture.cdn.bcebos.com/340e4eb8b43ea8db5afc8b86189c2cf7deb2160e.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1", "https://exp-picture.cdn.bcebos.com/def3c219ce2c5b1b0b6885682b39131fcfec0e0e.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1"]}, {"txt": "\u968f\u540e\u5c06.a\u6587\u4ef6\u62f7\u8d1d\u5230\u7f16\u8bd1\u5668\u7684lib\u6587\u4ef6\u76ee\u5f55\u4e0b\uff0c.dll\u6587\u4ef6\u62f7\u8d1d\u5230bin\u6587\u4ef6\u76ee\u5f55\u4e0b"}, {"txt": "\u73b0\u5728\u5c31\u53ef\u4ee5\u6109\u5feb\u7684\u7801\u4ee3\u7801\u4e86\uff0c\u65b0\u5efa\u5de5\u7a0b\uff0c#include ,\u6dfb\u52a0\u94fe\u63a5\u9009\u9879Box2D"}, {"img": ["https://exp-picture.cdn.bcebos.com/cfadcdd96975f2c4f12f28f78f0148fe1f42060e.m2m?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1"]}], [{"txt": ["\u6ce8\u610f\u4e8b\u9879"]}, {"txt": "\u6700\u540e\u751f\u6210\u7684.a\u548c.dll\u6587\u4ef6\u540d\u548c\u5de5\u7a0b\u540d\u540c\u540d"}]]1楼