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

compile error on gcc 4.8.5 #7

Closed
daydream-boost opened this issue Oct 27, 2020 · 1 comment
Closed

compile error on gcc 4.8.5 #7

daydream-boost opened this issue Oct 27, 2020 · 1 comment
Labels
compability Compability for compiler or OS

Comments

@daydream-boost
Copy link

Describe the bug
compile error

Your environment

  • OS: [CentOS Linux release 7.4.1708 x64]
  • Compiler [gcc 4.8.5]

Additional context

In file included from test.c:1:0:
yyjson.h:260:53: error: conflicting declaration ‘typedef long long int int64_t’
         __extension__ typedef long long             int64_t;
                                                     ^
In file included from /usr/include/stdlib.h:314:0,
                 from yyjson.h:18,
                 from test.c:1:
/usr/include/sys/types.h:197:1: error: ‘int64_t’ has a previous declaration as ‘typedef long int int64_t’
 __intN_t (64, __DI__);
 ^
@ibireme ibireme added bug Something isn't working compability Compability for compiler or OS and removed bug Something isn't working labels Oct 27, 2020
@ibireme
Copy link
Owner

ibireme commented Oct 27, 2020

It seems that yyjson cannot not find stdint.h. As a workaround, you may define YYJSON_HAS_STDINT_H=1 for your project.

I will fix it later.

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

No branches or pull requests

2 participants