开发者

Sharing boost .hpp files between platforms

开发者 https://www.devze.com 2022-12-16 22:03 出处:网络
I\'m not very sure about this and I can\'t seem to find a complete answer. Some of boost\'s libraries need to be compiled (thread for example, as well as date time for some uses) - obviously one needs

I'm not very sure about this and I can't seem to find a complete answer. Some of boost's libraries need to be compiled (thread for example, as well as date time for some uses) - obviously one needs to compile them separately on each platform.

What I am interested in is if 开发者_运维技巧the hpp files can be shared between platforms. I'm ultimately seeking a directory structure like this:

boost\   
  include\ 
     ...  
  libs\
    nix\
      ...
    win\
      ...

So, can I:

  • use the same thread.hpp include in my linux version and my windows version? (thread.hpp needs a compiled lib)
  • use the same shared_ptr.hpp include between platforms? (shared_ptr.hpp does not need a compiled lib)

Thanks.


Yes, of course in both cases. The .hpp don't change between platforms (maybe with some preprocessing boost has some differences, but nothing you have to care about).

0

精彩评论

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

关注公众号