Skip to content

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

@zhouxs1023

Description

@zhouxs1023

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions