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

编译错误pika_admin.cc #5

Closed
yegong opened this issue May 12, 2016 · 1 comment
Closed

编译错误pika_admin.cc #5

yegong opened this issue May 12, 2016 · 1 comment

Comments

@yegong
Copy link

yegong commented May 12, 2016

环境:Ubuntu 14.04
分支:master,tag/v2.0.2

编译pika_admin.cc时,执行到

g++ -O2 -g -pipe -fPIC -W -DNDEBUG -Wwrite-strings -Wpointer-arith -Wreorder -Wswitch -Wsign-promo -Wredundant-decls -Wformat -Wall -Wno-unused-parameter -D_GNU_SOURCE -D__STDC_FORMAT_MACROS -std=c++11 -gdwarf-2 -Wno-redundant-decls -c src/pika_admin.cc -o src/pika_admin.o -I./include/ -I./src/ -I./third/glog/src/ -I./third/nemo/output/include/ -I./third/slash/output/include/ -I./third/pink/output/include/

报错

In file included from ./third/slash/output/include/base_conf.h:6:0,
                 from ./include/pika_conf.h:8,
                 from src/pika_admin.cc:2:
./third/slash/output/include/slash_define.h:6:16: error: expected identifier before '#'
 #define NUMBER '#'

经检查,是third/slash/output/include/slash_define.h的include顺序早于/usr/include/google/protobuf,导致protobuf使用了其中宏NUMBER的定义,从而造成语法错误。

@KernelMaker
Copy link
Collaborator

We have fixed it, thx!

@flabby flabby closed this as completed May 12, 2016
AlexStocks pushed a commit to ipixiu/pika that referenced this issue Dec 21, 2018
AlexStocks pushed a commit to ipixiu/pika that referenced this issue Dec 21, 2018
* fix isnan+isinf usage

* <cmath> already included in utils.h
AlexStocks pushed a commit to AlexStocks/pika that referenced this issue May 26, 2023
luky116 pushed a commit that referenced this issue Mar 18, 2024
Co-authored-by: wuxianrong <wuxianrong@360.cn>
wangshao1 pushed a commit to wangshao1/pika that referenced this issue Jun 21, 2024
…nge_config

feat: 修改rocksdb-cloud相关参数,增加storage层单测
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

3 participants