Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-1504

mesos.pb.h header include is problematic.

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.20.0
    • Component/s: build, c++ api
    • Labels:
      None
    • Sprint:
      Q2 Sprint 4

      Description

      After installing mesos:

      $ 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.
      

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              bmahler Benjamin Mahler
              Reporter:
              bmahler Benjamin Mahler

              Dates

              • Created:
                Updated:
                Resolved:

                Agile

                  Issue deployment