Boost logo

Boost-Build :

Subject: Re: [Boost-build] include path not recognized in Cygwin
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-06-10 02:38:40


On Wednesday 10 June 2009 Andrej van der Zee wrote:

>
> Hi,
>
> I am trying to port a simple project from Linux to Cygwin on Windows. I am using boost build from the Boost tree version 1_38. I configured Boost with toolset msvc and compiled/installed the Boost tree without any problems. But when I want to use Boost in my own project, it can't find the boost include directory somehow (but it does exist in the -I location). See below for output. Please help.
...

> "-IC:\cygwin\home\Andrej\mbrace\trunk"
>
> "-IC:\cygwin\usr\local\include"
>
> "-IC:\cygwin\usr\local\mysql\include\mysql"

...

> c:\cygwin\home\andrej\mbrace\trunk\parsers\cap2net\../core/net_bucket.h(5) : fatal error C1083: Cannot open include file: 'boost/serialization/map.hpp': No such
> file or directory

Sorry if that's obvious, but does either

        C:\cygwin\home\Andrej\mbrace\trunk\boost\serialization.hpp

or

> ...failed compile-c-c++ bin/msvc-9.0/debug/threading-multi/main.obj...
> ...skipped <pbin/msvc-9.0/debug/threading-multi>cap2net.exe for lack of <pbin/msvc-9.0/debug/threading-multi>main.obj...
> ...skipped <p/mbrace/bin>cap2net.exe for lack of <pbin/msvc-9.0/debug/threading-multi>cap2net.exe...
> ...failed updating 1 target...
> ...skipped 2 targets...
>
> Andrej_at_inspiron ~/mbrace/trunk/parsers/cap2net
> $ ls /usr/local/include/boost/serialization/map.hpp
> /usr/local/include/boost/serialization/map.hpp

Does

    C:\cygwin\usr\local\include\boost\serialization\map.hpp

exist? Strictly speaking, it's different path from the one you ls above, and
please use windows tools to check for its existance. Can you actually
cat/type its content?

Do thinks work if you create a .cpp file with

        #include <boost/serialization/map.hpp>

and compile it by hand with

        cl.exe -IC:\cygwin\usr\local\include\ <file>.cpp

?

- Volodya


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk