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

error: ‘size_t’ has not been declared #41

Open
sanmacorz opened this issue Jun 26, 2023 · 0 comments
Open

error: ‘size_t’ has not been declared #41

sanmacorz opened this issue Jun 26, 2023 · 0 comments

Comments

@sanmacorz
Copy link

When compiling using make I keep getting the error: ./src/common.h:56:147: error: ‘size_t’ has not been declared

But adding #include <stddef.h> or using std::size_t; to src/common.h fixes it, I think it's because stddef.h guarantees to define size_t in the global namespace, I am not sure why this error seems to trigger only in systems running Manjaro Linux though. In my case I'm running the Kernel 6.3.5.

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

1 participant