|
Boost : |
Subject: Re: [boost] [afio] Compilation error in applications, including tests
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2015-04-27 17:02:42
On 27 Apr 2015 at 13:26, Brian Ravnsgaard Riis wrote:
> I wanted to try out the proposed AFIO library, but I'm having trouble
> with compilation.
>
> I followed the instructions for inserting it into the boost checkout, by
> symlinking libs/afio to the AFIO checkout. Boost compilation happens
> correctly, including the AFIO library, however I get include failures on
> BindLib when I try to compile a test program.
>
> I then tried running the test suite, as per instructions:
>
> $ ./b2 libs/afio/test
> [snip]
> gcc.compile.c++.pch
> bin.v2/libs/afio/test/gcc-4.9.1/debug/threading-multi/test_functions.hpp.gch
> In file included from
> ./boost/afio/spinlock/include/boost/spinlock/concurrent_unordered_map.hpp:35:0,
> from ./boost/afio/config.hpp:341,
> from ./boost/afio/afio.hpp:41,
> from libs/afio/test/test_functions.hpp:17:
> ./boost/afio/spinlock/include/boost/spinlock/spinlock.hpp:81:36: fatal
> error: bindlib/include/import.h: No such file or directory
> #include "bindlib/include/import.h"
> ^
> compilation terminated.
> ...
>
> And more of the same ilk.
>
> Am I missing some obvious configuration or something?
Yes, you didn't do a recursive submodule init and update as per the
instructions.
You need to specifically do:
git submodule update --init --recursive
... to make sure the submodules of the submodules are checked out. In
this case, spinlock does not have its bindlib being checked out.
Or else use the tarball
https://boostgsoc13.github.io/boost.afio/afio-stable.tar.bz2 which
should be ready to go. Let me know if it isn't.
Niall
-- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk