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

Turn on "error: unknown type name 'u_int32_t" in msys2 on windows7 x64 #150

Open
zhouxs1023 opened this issue Nov 8, 2020 · 0 comments
Open

Comments

@zhouxs1023
Copy link

I compile source in msys2,but turn on error as below:
utf8.h:12:14: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
12 | int u8_toucs(u_int32_t *dest, int sz, char *src, int srcsz);
| ^~~~~~~~~
| uint32_t
utf8.h:15:35: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
15 | int u8_toutf8(char *dest, int sz, u_int32_t *src, int srcsz);
| ^~~~~~~~~
| uint32_t
utf8.h:18:30: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
18 | int u8_wc_toutf8(char *dest, u_int32_t ch);
| ^~~~~~~~~
| uint32_t
utf8.h:27:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
27 | u_int32_t u8_nextchar(char *s, int *i);
| ^~~~~~~~~
| uint32_t
utf8.h:41:40: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
41 | int u8_read_escape_sequence(char *src, u_int32_t *dest);
| ^~~~~~~~~
| uint32_t
utf8.h:45:40: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
45 | int u8_escape_wchar(char *buf, int sz, u_int32_t ch);
| ^~~~~~~~~
| uint32_t
utf8.h:61:26: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
61 | char *u8_strchr(char *s, u_int32_t ch, int *charn);
| ^~~~~~~~~
| uint32_t
utf8.h:65:26: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
65 | char *u8_memchr(char *s, u_int32_t ch, size_t sz, int *charn);
| ^~~~~~~~~
| uint32_t
COLLECT_GCC_OPTIONS='-v' '-o' 'bean.exe' '-g' '-Wall' '-mtune=generic' '-march=x86-64'

Thank for advance for you help!

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