delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/10/04/18:00:24

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
Subject: Re: C/C++ and the boost library: /usr/include/boost does not get included
Date: Sat, 04 Oct 2008 16:59:11 -0500
Lines: 52
Message-ID: <gc8ovr$5cj$1@ger.gmane.org>
References: <gc8l7e$qja$1 AT ger DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
In-Reply-To: <gc8l7e$qja$1@ger.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Adem wrote:

> I think there's something wrong with the installation routine
> for the latest boost library (1.33.1-4) in cygwin.=20
> Somehow one cannot change to that directory,
> and because of that also the compiler cannot include stuff from there.
>=20
> For example my C++ file (stattool.cpp) has the following include:
>    #include <boost/filesystem/operations.hpp>
>=20
> gc++ brings the following error:
> stattool.cpp:8:43: boost/filesystem/operations.hpp: No such file or direc=
tory

use: g++ -I/usr/include/boost-1_33_1/ ...

> The code compiles fine under Linux (Debian et al.).
> The boost include directory is normally /usr/include/boost.
> The following shell command gives the following output:
> $ ls -l /usr/include/boo*
> total 0
> drwxrwx---+ 48 Administrator Benutzer 0 Oct  4 21:36 boost
>=20
> But funny thing is: one cannot change to that directory :-)
>=20
> $ cd /usr/include/boost
> bash: cd: /usr/include/boost: No such file or directory
>=20
> Maybe it's a symbolic link issue that's not working under Win2003 ?
> DOS/Windows says:
>=20
> dir \cygwin\usr\include\boo*
> 10/04/2008  09:36 PM    <DIR>          boost-1_33_1
>=20
> and finally therein is the right directory named "boost".
> So the boost library has got installed one level deeper=20
> and somehow ls -l gives weird output (symbolic link issue?),
> and the compiler cannot include header files in "boost"  (ie. /usr/includ=
e/boost).

No symbolic link issue.  You're just expecting the wrong output, ls
shows the directory contents if there's only one path corresponding to
your wildcard, i.e. boo* resolves to boost-1_33_1 only, so it shows its
contents.

On the Boost problem, it was probably meant to be handled by
alternatives (so you could have more than one version installed), but is
not.  I don't have it installed but perhaps there are notes under
/usr/share/doc/Cygwin/ that describe why is it installed that way or how
is it supposed to be used.
--=20
Ren=E9 Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019