You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Zuyu Zhang (JIRA)" <ji...@apache.org> on 2014/06/18 22:28:24 UTC

[jira] [Commented] (MESOS-1504) mesos.pb.h header include is problematic.

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

Zuyu Zhang commented on MESOS-1504:
-----------------------------------

Did you try the following command:

$ g++ test.cpp -I /usr/local/include/mesos

Here, I suppose the install prefix path for Mesos is /usr/local.

> 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)