[CDRIVER-2261] Examples require C++ linker Created: 30/Aug/17  Updated: 28/Oct/23  Resolved: 12/Sep/17

Status: Closed
Project: C Driver
Component/s: Build
Affects Version/s: 1.7.0
Fix Version/s: 1.8.2, 1.9.0

Type: Task Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I see in libmongoc's CMakeLists.txt:

      if (ENABLE_SNAPPY STREQUAL "bundled")
         set_target_properties(${example} PROPERTIES LINKER_LANGUAGE CXX)
         set_target_properties(${example} PROPERTIES LINKER_LANGUAGE CXX)
      endif ()

The line need not be repeated, obviously. But more importantly, is it still necessary to use a C++ linker when linking a program to libmongoc that was built with bundled Snappy? Or did we fix that?



 Comments   
Comment by Githook User [ 28/Oct/17 ]

Author:

{'email': 'bjori@php.net', 'name': 'Hannes Magnusson', 'username': 'bjori'}

Message: CDRIVER-2261 Examples require C++ linker
Branch: r1.8
https://github.com/mongodb/mongo-c-driver/commit/757413581f5ef1d966e466d2cfa4565c8196ccdf

Comment by Ramon Fernandez Marina [ 12/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:Merge branch 'CDRIVER-2261-examples-require-c++-linker'

Comment by Ramon Fernandez Marina [ 12/Sep/17 ]

Author:

{'username': u'bjori', 'name': u'Hannes Magnusson', 'email': u'bjori@php.net'}

Message:CDRIVER-2261 Examples require C++ linker
Branch:master
https://github.com/mongodb/mongo-c-driver/commit/87e06ec1f3d847859c4563d5db773bdc12ef512b

Comment by Hannes Magnusson [ 12/Sep/17 ]

https://github.com/mongodb/mongo-c-driver/commit/de5c129de3635cbb45dbf3cb710194f646bfa7e3

Generated at Wed Feb 07 21:14:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.