Boost logo

Boost :

Subject: Re: [boost] [filesystem] path.cpp fails to compile under clang/Cygwin
From: Beman Dawes (bdawes_at_[hidden])
Date: 2015-01-05 11:59:17


On Mon, Jan 5, 2015 at 11:31 AM, Peter Dimov <lists_at_[hidden]> wrote:

> Fails like this:
>
> clang-linux.compile.c++.without-pth ..\..\..\bin.v2\libs\
> filesystem\build\clang-linux-3.4.2\release\link-static\path.obj
> ..\..\..\libs\filesystem\src\path.cpp:36:11: fatal error:
> 'windows_file_codecvt.hpp' file not found
> # include "windows_file_codecvt.hpp"
> ^
> 1 error generated.
>
> "clang++" -c -x c++ -Wno-variadic-macros -Wno-c99-extensions -O3
> -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_STATIC_LINK=1
> -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"..\..\..\include" -o
> "..\..\..\bin.v2\libs\filesystem\build\clang-linux-
> 3.4.2\release\link-static\path.obj" "..\..\..\libs\filesystem\src\
> path.cpp"
>
> Looks like a clang bug; the file is certainly there, in the same directory
> as path.cpp.
>
>
Filesystem build and test with clang work for me.

clang++ --version reports "Ubuntu clang version 3.5-1ubuntu1 (trunk) (based
on LLVM 3.5)"

The regression tests for both master and develop also show quite a few
linux clang results, and none are reporting any errors. So it looks like
something is whacky that is specific to your setup.

HTH,

--Beman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk