在linux下安装thrift库的时候,make之后 出现这样的错误,求解答。找了好久找不出原因。 10
make[1]:Enteringdirectory`/home/root/test/thrift-0.9.1/compiler/cpp'makeinstall-ammak...
make[1]: Entering directory `/home/root/test/thrift-0.9.1/compiler/cpp'
make install-am
make[2]: Entering directory `/home/root/test/thrift-0.9.1/compiler/cpp'
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I./src -Wall -Wno-sign-compare -Wno-unused -g -O2 -MT libparse_a-thrifty.o -MD -MP -MF .deps/libparse_a-thrifty.Tpo -c -o libparse_a-thrifty.o `test -f 'thrifty.cc' || echo './'`thrifty.cc
In file included from thrifty.yy:32:0:
./src/inttypes.h:33:2: error: #error "Use this header only with Microsoft Visual C++ compilers!"
In file included from thrifty.yy:32:0:
./src/inttypes.h:278:1: error: '_inline' does not name a type
make[2]: *** [libparse_a-thrifty.o] Error 1
make[2]: Leaving directory `/home/root/test/thrift-0.9.1/compiler/cpp'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/root/test/thrift-0.9.1/compiler/cpp'
make: *** [install-recursive] Error 1
急求谢谢各位大神 展开
make install-am
make[2]: Entering directory `/home/root/test/thrift-0.9.1/compiler/cpp'
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I./src -Wall -Wno-sign-compare -Wno-unused -g -O2 -MT libparse_a-thrifty.o -MD -MP -MF .deps/libparse_a-thrifty.Tpo -c -o libparse_a-thrifty.o `test -f 'thrifty.cc' || echo './'`thrifty.cc
In file included from thrifty.yy:32:0:
./src/inttypes.h:33:2: error: #error "Use this header only with Microsoft Visual C++ compilers!"
In file included from thrifty.yy:32:0:
./src/inttypes.h:278:1: error: '_inline' does not name a type
make[2]: *** [libparse_a-thrifty.o] Error 1
make[2]: Leaving directory `/home/root/test/thrift-0.9.1/compiler/cpp'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/root/test/thrift-0.9.1/compiler/cpp'
make: *** [install-recursive] Error 1
急求谢谢各位大神 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询