Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-952

Only <bson/bson.h> can be included directly

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac OS: 10.5.6
      XCode: 11.6

      Description

      I'm getting error in below line! Kitura is end of life January 2020 and I don't know. The time I spent for Kitura is waste! I don't know how these peoples start a project and make peoples suffer! Now i need to move to Vapor! The Vapor is following a strange way of creating projects without workspace and project files! Not working fine with XCode! I've put the mongo db in a framework and tried putting the framework in Package.swift. It is giving error in the code below! Other frameworks working nicely! Is fix for this coming? How others able to do?

      #if !defined(BSON_INSIDE) && !defined(BSON_COMPILATION)
      #error "Only <bson/bson.h> can be included directly."
      #endif

      "Only <bson/bson.h> can be included directly."

        Attachments

          Activity

            People

            Assignee:
            matt.broadstone Matt Broadstone
            Reporter:
            kumar.muthaiah@yahoo.com Kumar Muthaiah
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: