Skip to content

fatal error: 'chrono' file not found #2

@LudovicRousseau

Description

@LudovicRousseau

On Mac OS X I have:

In file included from LibusbTest.cpp:18:
In file included from ../headers/libusbpp.h:3:
In file included from ../headers/device.h:2:
In file included from ../headers/Configuration.h:5:
In file included from ../headers/interface.h:6:
In file included from ../headers/Endpoint.h:7:
../headers/Transfer.h:4:10: fatal error: 'chrono' file not found
# include <chrono>
 ^

1 error generated.
make: **\* [LibusbTest] Error 1```

I also do not have the `<future>` header.

I guess that is because my C++ compiler (clang) is not yet C++11 compliant.

`$ c++ --version
Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix`

I also tried with GCC but I have the same problem:
`$ g++ --version
i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)`

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions