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
> In file included from
> 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
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
should be ready to go. Let me know if it isn't.
-- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/