I compile my Android project in QtCreator with BOOST_ALL_NO_LIB
. This means I include all boost .cpp
files right into my project. When I converted this project to Visual Studio project to try to build it for windows, one boost file started to cause problems: zlib.cpp
It contains these lines:
#include "zlib.h" // Jean-loup Gailly's and Mark Adler's "zlib.h" header.
// To configure Boost to work with zlib, see the
// installation instructions here:
// http://boost.org/libs/iostreams/doc/index.html?path=7
I don't understand how is this ever meant to compile, since the directory looks like this:
That means the zlib.h
is not there and cannot be included. Visual Studio experiences exactly that problem:
boost159\libs\iostreams\src\zlib.cpp(20): fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
At the same time, it compiles all right in QtCreator with qmake. So what's going on, how can it ever work? And how to make it work in Visual Studio 2010