mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yanjun Shen <snails...@gmail.com>
Subject build tests/scheduler_http_api_tests.cpp error
Date Tue, 22 Aug 2017 09:22:40 GMT
hi,
  now, i have finished make install ,but when i build scheduler_http_api_tests.cpp file, then
error as flow:

In file included from /usr/local/include/internal/devolve.hpp:27:0,
                 from /usr/local/include/master/master.hpp:75,
                 from scheduler_http_api_tests.cpp:39:
/usr/local/include/mesos/executor/executor.hpp:28:61: 错误:‘Call’不是一个类型名
 inline std::ostream& operator<<(std::ostream& stream, const Call::Type&
type)
                                                             ^
/usr/local/include/mesos/executor/executor.hpp:28:71: 错误:expected unqualified-id before
‘&’ token
 inline std::ostream& operator<<(std::ostream& stream, const Call::Type&
type)
                                                                       ^
/usr/local/include/mesos/executor/executor.hpp:28:71: 错误:expected ‘)’ before ‘&’
token
/usr/local/include/mesos/executor/executor.hpp:28:73: 错误:expected initializer before
‘type’
 inline std::ostream& operator<<(std::ostream& stream, const Call::Type&
type)
                                                                         ^
/usr/local/include/mesos/executor/executor.hpp:34:61: 错误:‘Event’不是一个类型名
 inline std::ostream& operator<<(std::ostream& stream, const Event::Type&
type)
                                                             ^
/usr/local/include/mesos/executor/executor.hpp:34:72: 错误:expected unqualified-id before
‘&’ token
 inline std::ostream& operator<<(std::ostream& stream, const Event::Type&
type)
                                                                        ^
/usr/local/include/mesos/executor/executor.hpp:34:72: 错误:expected ‘)’ before ‘&’
token
/usr/local/include/mesos/executor/executor.hpp:34:74: 错误:expected initializer before
‘type’
 inline std::ostream& operator<<(std::ostream& stream, const Event::Type&
type)

my build command 
g++ -std=c++0x  -o test_scheduler_http.bin  -I/usr/local/include  -L/usr/local/lib scheduler_http_api_tests.cpp
-Lmesos-1.3.0

i find  type “Call” in the scheduler.pb.h in the build dir
[root@mytest mesos-1.3.0]# find . -name scheduler.pb.h
./build/include/mesos/scheduler/scheduler.pb.h
./build/include/mesos/v1/scheduler/scheduler.pb.h

so , do you tell me ?Mesos’s heads file dir need include ?

Thanks.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message