Using boost library in cocoa project

Theoretically, can I use the boost library (e.g. boost threads) inside a cocoa project?

+4
source share
3 answers

Yes, nothing bothers you:

  • you can mix Objective-C and C ++ - the result is called Objective-C ++
  • you can, of course, also reference the C and C ++ libraries.
+4
source

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

+1
source

Yes, just make sure you use Objective-C ++ and include the enhancements in the directories you need. (Note: to change to Objective-C ++, change the file extension to .mm instead of .m and save the .h files the same way)

0
source

Source: https://habr.com/ru/post/1307897/


All Articles