Boost logo

Boost Users :

Subject: [Boost-users] boost::lockfree::queue not working with -fgnu-tm
From: Philipp Schoppe (philipp.schoppe_at_[hidden])
Date: 2014-07-15 11:09:59


Hello,

I try to benchmark different queue implementations. I have a test program
which includes the boost lockfree queue and some custom implementations
where one is using gcc's STM. In order to compile it, I need to add the
-fgnu-tm
flag. I am using an up-to-date arch linux system with gcc 4.9.0 and
boost 1.55.0
When adding this flag, I get a compilation error. This is a small
example that
illustrates the problem:

errtest.cpp:

#include <boost/lockfree/queue.hpp>

int main () {

     boost::lockfree::queue<int> lfqueue;
     lfqueue.push(234);

     return 0;
}

Compiling it using

g++ -std=c++11 -lboost_system -g -O3 -Wall -Werror -Wswitch-enum
   -fgnu-tm errtest.cpp -o test

leads to an error.





Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net