Skip to content

Can't find C++ standard library #139837

Open
@BhJaipal

Description

@BhJaipal

everytime I try to compile C++ with clang, I get this

$ clang++-18 alloc.cpp
alloc.cpp:1:10: fatal error: 'iostream' file not found
    1 | #include <iostream>
      |          ^~~~~~~~~~
1 error generated.

why can't it open C++ headers itself?
I have to give header path myself

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'incompleteIssue not complete (e.g. missing a reproducer, build arguments, etc.)questionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!waiting-for-response

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions