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 CentOS 6.10 #53

Closed
caiming100 opened this issue Oct 28, 2021 · 1 comment
Closed

compile error on CentOS 6.10 #53

caiming100 opened this issue Oct 28, 2021 · 1 comment
Labels
compability Compability for compiler or OS

Comments

@caiming100
Copy link

Describe the bug
compile error on CentOS 6.10.

Your environment

  • OS: [CentOS 6.10 x64]
  • Compiler: [gcc 4.4.7]

Additional context

[root@localhost build]# cmake --build .
Scanning dependencies of target yyjson
[ 50%] Building C object CMakeFiles/yyjson.dir/src/yyjson.c.o
In file included from /home/yyjson-0.3.0/src/yyjson.c:9:
/home/yyjson-0.3.0/src/yyjson.h:298: error: conflicting types for ‘int64_t’
/usr/include/sys/types.h:198: note: previous declaration of ‘int64_t’ was here
/home/yyjson-0.3.0/src/yyjson.h:353: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
/home/yyjson-0.3.0/src/yyjson.h:3900: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
/home/yyjson-0.3.0/src/yyjson.c:26: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
/home/yyjson-0.3.0/src/yyjson.c:7213: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
gmake[2]: *** [CMakeFiles/yyjson.dir/src/yyjson.c.o] Error 1
gmake[1]: *** [CMakeFiles/yyjson.dir/all] Error 2
gmake: *** [all] Error 2
[root@localhost build]# 
@ibireme ibireme added the compability Compability for compiler or OS label Oct 28, 2021
@ibireme
Copy link
Owner

ibireme commented Oct 29, 2021

Fixed (master): d73cac6

@ibireme ibireme closed this as completed Oct 29, 2021
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