mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Rukletsov <a...@mesosphere.com>
Subject Re: build tests/scheduler_http_api_tests.cpp error
Date Fri, 25 Aug 2017 10:55:54 GMT
Yes, we need to `#include <ostream>`. Thanks for the report! It is fixed in
the master now: 9735aebcdaa02d6577636b2c9ea45d986af747c9

On Tue, Aug 22, 2017 at 11:22 AM, Yanjun Shen <snailshen@gmail.com> wrote:

> 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