开发者

Use boost library in cocoa project

开发者 https://www.devze.com 2022-12-28 14:56 出处:网络
It i开发者_如何学JAVAs theoretically possible to use a boost library (e.g. boost threads) inside a cocoa project? Yes, there is nothing stopping you from doing that:

It i开发者_如何学JAVAs theoretically possible to use a boost library (e.g. boost threads) inside a cocoa project?


Yes, there is nothing stopping you from doing that:

  • you can mix Objective-C and C++ - the result is called Objective-C++
  • you can of course also link to C and C++ libraries


Yes. You can compile boost as a static library and link against it, or you can add the source code to your project and compile it with it.


Yeah, just make sure you use Objective-C++ and include to the boost directories you need. (Note: to change to objective-C++ change the file extension to .mm instead of .m, and keep the .h files the same)

0

精彩评论

暂无评论...
验证码 换一张
取 消