Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-63

error: 'ssize_t' does not name a type (missing stddef.h)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.0beta
    • 2.0.0beta
    • library
    • Security Level: Public
    • None

    Description

      In trying to compile a Qt c++ based application, the compiler cannot found a header file: stddef.h

      Error log:
      In file included from /opt/libcouchbase/include/libcouchbase/couchbase.h:29:0,
      from ../../src/connector/vp_connector.cpp:8:
      /opt/libcouchbase/include/libcouchbase/configuration.h:57:13: error: 'ssize_t' does not name a type
      In file included from /opt/libcouchbase/include/libcouchbase/couchbase.h:31:0,
      from ../../src/connector/vp_connector.cpp:8:
      /opt/libcouchbase/include/libcouchbase/types.h:206:31: error: expected identifier before '*' token
      /opt/libcouchbase/include/libcouchbase/types.h:210:47: error: ISO C++ forbids declaration of 'libcouchbase_ssize_t' with no type [-fpermissive]
      /opt/libcouchbase/include/libcouchbase/types.h:210:47: error: 'libcouchbase_ssize_t' declared as function returning a function
      ......

      It should be changed to unistd.h... at less in linux systems.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            trond Trond Norbye
            warptrosse Federico Casares
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty