Tuesday, February 07, 2012


C++ disruptor autoconf / automake hell

I'll try to avoid a tirade about the state of C++ build tools, but I was having a problem persuading the https://github.com/fsaintjacques/disruptor-- project to build. Given that the code is mainly headers (which I like since I consider most cpp files a code smell), the pain was disproportionate. Anyway, here's a compile command for those who just want to run the code (save as a script):

#! /bin/bash

export LD_LIBRARY_PATH=/opt/gcc-4.6.2/lib64/:$LD_LIBRARY_PATH

g++ -I .. \
-I /opt/boost/linux64/1.48.0/ \
-std=gnu++0x \
-lboost_unit_test_framework -L /opt/boost/linux64/1.48.0/lib \
-O3 -march=native -DNDEBUG \
-o ${1%.*} $1

Labels: , , ,

Comments: Post a Comment

Links to this post:

Create a Link

<< Home

This page is powered by Blogger. Isn't yours?