boost

How to make Boost dylibs universal (i386 & x86_64) on os x?

只谈情不闲聊 提交于 2020-12-09 04:16:48
问题 I'm trying to compile a Boost library into a universal binary file (i.e. a "fat" file that contains builds for both the i386 and x86_64 architectures). Souring the internet and SO I assembled the following instructions. Download boost (e.g. from http://www.boost.org/users/download/) In the downloaded folder, type ./bootstrap.sh (or, in my case ./bootstrap.sh --with-libraries=thread , since I only need the thread library) type ./b2 install cxxflags="-arch i386 -arch x86" These steps installed

Boost shared memory and synchronized queue issue/crash in consumer process

喜夏-厌秋 提交于 2020-12-06 12:35:59
问题 I'm trying to consume from a child process a synchronized queue in c++. I'm using this synchronized queue in C++ () (http://www.internetmosquito.com/2011/04/making-thread-safe-queue-in-c-i.html) I modified the queue to be serializable in boost and also replaced the used boost::mutex io_mutex_ to use instead an inteprocess mutex (thanks @Sehe) boost::interprocess::interprocess_mutex io_mutex_ And when locking I changed every line that has boost::mutex::scoped_lock lock(io_mutex_); to scoped

Python 3.7 + Visual Studio 2107 + boost 1.69

点点圈 提交于 2020-11-29 23:52:50
问题 I am trying to get boost 1.69 working with visual studio 2107. My goal is to use Numpy in C++ When I include #include boost/python/numpy.hpp The error I am getting is: Searching C:\boost_1_69_0\stage\lib\boost_python37-vc141-mt-gd-x32-1_69.lib: 1>LINK : fatal error LNK1104: cannot open file 'boost_numpy37-vc141-mt-gd-x32-1_69.lib' I am pretty sure that I have this file in this directory. My architucture in the project is x86, 32-bit addrressing I built boost as follows: .\bbotstarp.bat .\b2

Python 3.7 + Visual Studio 2107 + boost 1.69

余生长醉 提交于 2020-11-29 23:51:22
问题 I am trying to get boost 1.69 working with visual studio 2107. My goal is to use Numpy in C++ When I include #include boost/python/numpy.hpp The error I am getting is: Searching C:\boost_1_69_0\stage\lib\boost_python37-vc141-mt-gd-x32-1_69.lib: 1>LINK : fatal error LNK1104: cannot open file 'boost_numpy37-vc141-mt-gd-x32-1_69.lib' I am pretty sure that I have this file in this directory. My architucture in the project is x86, 32-bit addrressing I built boost as follows: .\bbotstarp.bat .\b2

Python 3.7 + Visual Studio 2107 + boost 1.69

孤人 提交于 2020-11-29 23:49:57
问题 I am trying to get boost 1.69 working with visual studio 2107. My goal is to use Numpy in C++ When I include #include boost/python/numpy.hpp The error I am getting is: Searching C:\boost_1_69_0\stage\lib\boost_python37-vc141-mt-gd-x32-1_69.lib: 1>LINK : fatal error LNK1104: cannot open file 'boost_numpy37-vc141-mt-gd-x32-1_69.lib' I am pretty sure that I have this file in this directory. My architucture in the project is x86, 32-bit addrressing I built boost as follows: .\bbotstarp.bat .\b2