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

unknow type name 'size_t', no member named 'int16_t' in the global namespace #82

Open
Jr61-star opened this issue Oct 26, 2022 · 3 comments

Comments

@Jr61-star
Copy link

Hello, when I use make command in JLang, it shows error as follow:

In file included from native/rep.h:12:
native/interface.h:28:12: error: unknown type name 'size_t'
idv_ht(size_t capacity);
^
native/interface.h:44:5: error: unknown type name 'size_t'
size_t capacity;
^
native/interface.h:45:5: error: unknown type name 'size_t'
size_t getIndexForHash(int h);

In file included from /usr/local/llvm/include/c++/v1/cinttypes:239:
/usr/local/llvm/include/c++/v1/cstdint:153:8: error: no member named 'int8_t' in the global namespace
using::int8_t;
~~^
/usr/local/llvm/include/c++/v1/cstdint:154:8: error: no member named 'int16_t' in the global namespace
using::int16_t;
~~^
/usr/local/llvm/include/c++/v1/cstdint:155:8: error: no member named 'int32_t' in the global namespace
using::int32_t;
~~^
/usr/local/llvm/include/c++/v1/cstdint:156:8: error: no member named 'int64_t' in the global namespace
using::int64_t;
~~^
/usr/local/llvm/include/c++/v1/cstdint:158:8: error: no member named 'uint8_t' in the global namespace
using::uint8_t;
~~^
/usr/local/llvm/include/c++/v1/cstdint:159:8: error: no member named 'uint16_t' in the global namespace
using::uint16_t;
~~^
/usr/local/llvm/include/c++/v1/cstdint:160:8: error: no member named 'uint32_t' in the global namespace
using::uint32_t;
~~^
/usr/local/llvm/include/c++/v1/cstdint:161:8: error: no member named 'uint64_t' in the global namespace
using::uint64_t;
~~^
/usr/local/llvm/include/c++/v1/cstdint:163:8: error: no member named 'int_least8_t' in the global namespace
using::int_least8_t;
~~^
/usr/local/llvm/include/c++/v1/cstdint:164:8: error: no member named 'int_least16_t' in the global namespace
using::int_least16_t;
~~^
/usr/local/llvm/include/c++/v1/cstdint:165:8: error: no member named 'int_least32_t' in the global namespace
using::int_least32_t;
~~^
/usr/local/llvm/include/c++/v1/cstdint:166:8: error: no member named 'int_least64_t' in the global namespace
using::int_least64_t;
~~^
/usr/local/llvm/include/c++/v1/cstdint:168:8: error: no member named 'uint_least8_t' in the global namespace
using::uint_least8_t;
~~^
/usr/local/llvm/include/c++/v1/cstdint:169:8: error: no member named 'uint_least16_t' in the global namespace
using::uint_least16_t;
~~^
/usr/local/llvm/include/c++/v1/cstdint:170:8: error: no member named 'uint_least32_t' in the global namespace
using::uint_least32_t;
~~^
/usr/local/llvm/include/c++/v1/cstdint:171:8: error: no member named 'uint_least64_t' in the global namespace
using::uint_least64_t;
~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [out/native/reflect.o] Error 1
make: *** [runtime] Error 2

how can i fix this error? thanks

@andrewcmyers
Copy link
Member

size_t is a standard type in C. What OS version are you building on?

@Jr61-star
Copy link
Author

I build on Mac OS, is something wrong with Mac OS?

@andrewcmyers
Copy link
Member

I'm concerned that your software development environment may be broken. Mac OSX is actually our usual platform. But size_t should be found. Did you follow all the instructions in the README file?

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