mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Mahler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MESOS-1504) mesos.pb.h header include is problematic.
Date Wed, 18 Jun 2014 23:22:24 GMT

    [ https://issues.apache.org/jira/browse/MESOS-1504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14036637#comment-14036637
] 

Benjamin Mahler commented on MESOS-1504:
----------------------------------------

Hey Zuyu, here is my proposed fix: https://reviews.apache.org/r/22715/

> mesos.pb.h header include is problematic.
> -----------------------------------------
>
>                 Key: MESOS-1504
>                 URL: https://issues.apache.org/jira/browse/MESOS-1504
>             Project: Mesos
>          Issue Type: Bug
>          Components: build, c++ api
>            Reporter: Benjamin Mahler
>            Assignee: Benjamin Mahler
>
> After installing mesos:
> {noformat}
> $ cat test.cpp
> #include <mesos/mesos.hpp>
> int main() {
>   return 0;
> }
> $ g++ test.cpp -I /usr/local/include
> In file included from test.cpp:1:
> /usr/local/include/mesos/mesos.hpp:22:10: error: 'mesos.pb.h' file not found with <angled>
include; use "quotes" instead
> #include <mesos.pb.h> // ONLY USEFUL AFTER RUNNING PROTOC.
>          ^~~~~~~~~~~~
>          "mesos.pb.h"
> In file included from test.cpp:1:
> In file included from /usr/local/include/mesos/mesos.hpp:22:
> /usr/local/include/mesos/mesos.pb.h:9:10: fatal error: 'google/protobuf/stubs/common.h'
file not found
> #include <google/protobuf/stubs/common.h>
>          ^
> 2 errors generated.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message