Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang cannot find include file #17

Open
codehz opened this issue Dec 12, 2023 · 1 comment
Open

clang cannot find include file #17

codehz opened this issue Dec 12, 2023 · 1 comment

Comments

@codehz
Copy link

codehz commented Dec 12, 2023

I put related file into ~/.cosmo
and try to use clang to compile a simple hello-world.c
this is what i got

> ~/.cosmo/bin/clang-15 -c -o test-clang.o --include $HOME/.cosmo/include/libc/integral/c.inc -I$HOME/.cosmo/include test-clang.c
In file included from <built-in>:1:
/Users/codehz/.cosmo/include/libc/integral/c.inc:109:10: fatal error: cannot open file '/Users/codehz/.cosmo/include/libc/integral/libc/stdbool.h': No such file or directory
#include "libc/stdbool.h"
         ^
1 error generated.

(native clang works)

@ahgamut
Copy link
Owner

ahgamut commented Dec 12, 2023

yeah @jart and I have run into this before -- would love some help in figuring out if there's a build flag or something that needs to be added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants