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

mesos.pb.h header include is problematic.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.20.0
    • build, c++ api
    • None
    • 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

              bmahler Benjamin Mahler
              bmahler Benjamin Mahler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: