Skip to content

wchar.h not found #4

Open
Open
@vitamin-caig

Description

@vitamin-caig

Hello!

Found a problem while trying to compile with this toolchain:

/home/user/devel/haiku/cross-tools-x86_64/bin/x86_64-unknown-haiku-g++ -g -O2 -DNDEBUG -funroll-loops -finline-functions -fdata-sections -ffunction-sections -fPIC   -DHAVE_STDINT_H -funsigned-char -fno-strict-aliasing -fvisibility=hidden -W -Wall -Wextra -pipe <includes> -std=c++17 -fvisibility-inlines-hidden -c <input> -o <output> -MMD
In file included from /home/user/devel/haiku/cross-tools-x86_64/x86_64-unknown-haiku/include/c++/11.3.0/bits/postypes.h:40,
                 from /home/user/devel/haiku/cross-tools-x86_64/x86_64-unknown-haiku/include/c++/11.3.0/bits/char_traits.h:40,
                 from /home/user/devel/haiku/cross-tools-x86_64/x86_64-unknown-haiku/include/c++/11.3.0/string:40,
                 ...
/home/user/devel/haiku/cross-tools-x86_64/x86_64-unknown-haiku/include/c++/11.3.0/cwchar:44:10: fatal error: wchar.h: No such file or directory
   44 | #include <wchar.h>
      |          ^~~~~~~~~
compilation terminated.

while

$ find ~/devel/haiku/ -name 'wchar.h'
/home/user/devel/haiku/cross-tools-x86_64/x86_64-unknown-haiku/include/c++/11.3.0/tr1/wchar.h

How to force compiler to use supplied include?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions