8000
Skip to content

[BUG]: can't include Boost libraries with MSVC #6681

@Aster89

Description

@Aster89

Describe the bug

Can't find Boost (or Range-v3, fwiw) headers on MSVC.

Steps to reproduce

Write the following source

#include<boost/hana/transform.hpp>
int main() {
};

include the Boost libraries, and select x64 msvc v19.latest, with option /std:c++17.

I get this error in the compiler window,

# License: MSVC Proprietary
# The use of this compiler is only permitted for internal evaluation purposes and is otherwise governed by the MSVC License Agreement.
# See https://visualstudio.microsoft.com/license-terms/vs2022-ga-community/
<Compilation failed>

and this in the output window

example.cpp
<source>(1): fatal error C1083: Cannot open include file: 'boost/hana/transform.hpp': No such file or directory
Compiler returned: 2

Expected behavior

Compiles fine.

Reproduction link

https://godbolt.org/z/ojsKn8c54

Screenshots

Not applicable

Operating System

up-to-date ArchLinux

Browser version

Version 126.0.6478.126 (Official Build) Arch Linux (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0