Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-34

Can not compile on windows 10 and VS2015

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0
    • Fix Version/s: None
    • Component/s: build
    • Labels:
      None

      Description

      With Cmake 3.4.0 RC2/VS2015/windows SDK 10
      I met a problem while build protobuf in the project which caused by some

      code in protobuf/config.h generated by cmake:

      ```
      /* the location of <unordered_map> or <hash_map> */
      #define HASH_MAP_H <unordered_map>

      /* the namespace of hash_map/hash_set */
      #define HASH_NAMESPACE std
      ```

      but there's another piece of code in hash.h trying to inherit std::hash_map :
      ```
      #include HASH_MAP_H
      ...
      template <typename Key, typename Data,
      typename HashFcn = hash<Key>,
      typename EqualKey = int >
      class hash_map : public HASH_NAMESPACE::hash_map<
      Key, Data, HashFcn> {
      public:
      hash_map(int = 0) {}
      };
      ```
      std::unordered_map is imported but requires std::hash_map. Definitely can not compile.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              melode11 Yuxing Yao
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: