Return-Path: X-Original-To: apmail-mesos-dev-archive@www.apache.org Delivered-To: apmail-mesos-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 25CEF11C93 for ; Wed, 18 Jun 2014 23:22:25 +0000 (UTC) Received: (qmail 36111 invoked by uid 500); 18 Jun 2014 23:22:24 -0000 Delivered-To: apmail-mesos-dev-archive@mesos.apache.org Received: (qmail 36042 invoked by uid 500); 18 Jun 2014 23:22:24 -0000 Mailing-List: contact dev-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list dev@mesos.apache.org Received: (qmail 35811 invoked by uid 99); 18 Jun 2014 23:22:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jun 2014 23:22:24 +0000 Date: Wed, 18 Jun 2014 23:22:24 +0000 (UTC) From: "Benjamin Mahler (JIRA)" To: dev@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-1504) mesos.pb.h header include is problematic. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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 > 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 include; use "quotes" instead > #include // 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 > ^ > 2 errors generated. > {noformat} -- This message was sent by Atlassian JIRA (v6.2#6252)