Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2396

CMake build error when configuring project with ENABLE_SRV=OFF

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.9.0
    • Affects Version/s: 1.8.2
    • Component/s: Build, cmake
    • Labels:
    • Environment:
      OSX 10.3
      cmake version 3.8

      If mongoc is configured with ENABLE_SRV=OFF
      the following error occurs:
      invalid token at start of a preprocessor expression
      #if MONGOC_HAVE_DNSAPI != 1
      ...
      if a define directive doesn't have a token we cannot use comparator operator.
      we can use only #ifdef and if defined

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            tzulea iulian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: