[CXX-638] C++ Driver on master fails to compile with Visual Studio 2015 Created: 20/Jul/15  Updated: 11/Jan/16  Resolved: 10/Jan/16

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: 0.2.0
Fix Version/s: 3.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CDRIVER-1036 Exclude min & max macros on Windows i... Closed
depends on CXX-760 CMake Configuration needs alternate m... Closed
depends on CXX-752 identical class names, method names, ... Closed
Epic Link: C++11 Driver MongoDB 3.2

 Description   

Compiler: VS 2015 RTM x64
OS: Window 8.1
CMake: 3.2.3
Git Hash: https://github.com/mongodb/mongo-cxx-driver/commits/master

D:\mongo-cxx-driver>"c:\Program Files (x86)\CMake\bin\cmake.exe" -G "Visual Studio 14 2015 Win64" .
-- The CXX compiler identification is MSVC 19.0.23026.0
-- Check for working CXX compiler using: Visual Studio 14 2015 Win64
-- Check for working CXX compiler using: Visual Studio 14 2015 Win64 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- No build type selected, default is Release
-- The C compiler identification is MSVC 19.0.23026.0
-- Check for working C compiler using: Visual Studio 14 2015 Win64
-- Check for working C compiler using: Visual Studio 14 2015 Win64 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error at c:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPkgConfig.cmake:388 (message):
  pkg-config tool not found
Call Stack (most recent call first):
  c:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPkgConfig.cmake:502 (_pkg_check_modules_internal)
  src/bsoncxx/CMakeLists.txt:24 (pkg_check_modules)
 
 
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Success
CMake Error at src/bsoncxx/CMakeLists.txt:113 (install):
  install Library TARGETS given no DESTINATION!
 
 
CMake Error at c:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPkgConfig.cmake:388 (message):
  pkg-config tool not found
Call Stack (most recent call first):
  c:/Program Files (x86)/CMake/share/cmake-3.2/Modules/FindPkgConfig.cmake:502 (_pkg_check_modules_internal)
  src/mongocxx/CMakeLists.txt:17 (pkg_check_modules)
 
 
CMake Error at src/mongocxx/CMakeLists.txt:138 (install):
  install Library TARGETS given no DESTINATION!
 
 
-- Configuring incomplete, errors occurred!
See also "D:/mongo-cxx-driver/CMakeFiles/CMakeOutput.log".
See also "D:/mongo-cxx-driver/CMakeFiles/CMakeError.log".



 Comments   
Comment by Githook User [ 10/Jan/16 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: CXX-638 Adjust for different MSVC visibility rules
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/3263040331f5d0cfeb8d055273601ec141244d5f

Comment by Githook User [ 07/Jan/16 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: CXX-638 Fixes required for VS2015 support
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/025ebb2df0a8c8ee2e100dce55a78aae7b4481b4

Comment by Andrew Morrow (Inactive) [ 06/Jan/16 ]

https://github.com/mongodb/mongo-cxx-driver/pull/417

Comment by Andrew Morrow (Inactive) [ 05/Jan/16 ]

Pulling this in to rc0 because it looks like we have workarounds for all known issues.

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