Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-893

Link errors in Debug Build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.0.2
    • Component/s: Build
    • Labels:
      None
    • Sprint:
      Platforms 15 (06/03/16)

      Description

      Release builds for cxx driver all appear to have built cleanly. Debug builds had a few link errors in some of the examples. Specifically, after adding these steps to the end of steps listed in appveyor.yml
      cmd: msbuild.exe ALL_BUILD.vcxproj /p:Configuration=Debug
      cmd: msbuild.exe INSTALL.vcxproj /p:Configuration=Debug
      cmd: msbuild.exe examples\examples.vcxproj /p:Configuration=Debug
      I got link errors in some (not all) of the examples. Here are some examples:
      Link:
      C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\Debug\view_and_value.exe" /INCREMENTAL /NOLOGO /LIBPATH:"D
      :/GITRepos/mongo-cxx-driver/install/lib" /LIBPATH:"D:/GITRepos/mongo-cxx-driver/install/lib/Debug" kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg3
      2.lib advapi32.lib ..\..\src\bsoncxx\Debug\bsoncxx.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"D:/GITRepos/mongo-cxx-driver/examples/bsoncxx/Debug/v
      iew_and_value.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/GITRepos/mongo-cxx-driver/examples/bsoncxx/Debug/view_and_value.lib" /MACHINE:X86 /SAFESEH /machine:X86 view_and_v
      alue.dir\Debug\view_and_value.obj
      view_and_value.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall bsoncxx::v_noabi::builder::basic::sub_array::sub_array(class bsoncxx::v_noabi::builder::core *
      )" (_imp??0sub_array@basic@builder@v_noabi@bsoncxx@@QAE@PAVcore@234@@Z) referenced in function "void __vectorcall bsoncxx::v_noabi::builder::basic::impl::generic_append<class <lambda_c8016f0f43fec5
      746f6c2b9c70eb508a> >(class bsoncxx::v_noabi::builder::core *,class <lambda_c8016f0f43fec5746f6c2b9c70eb508a> &&)" (??$generic_append@V<lambda_c8016f0f43fec5746f6c2b9c70eb508a>@@@impl@basic@builder@v
      _noabi@bsoncxx@@YQXPAVcore@234@$$QAV<lambda_c8016f0f43fec5746f6c2b9c70eb508a>@@@Z) [D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\view_and_value.vcxproj]
      view_and_value.obj : error LNK2019: unresolved external symbol "_declspec(dllimport) public: void __thiscall bsoncxx::v_noabi::builder::basic::sub_array::append(void)" (imp?append@sub_array@basic
      @builder@v_noabi@bsoncxx@@QAEXXZ) referenced in function "public: void __thiscall bsoncxx::v_noabi::builder::basic::sub_array::append<char const (&)[8]>(char const (&)[8])" (??$append@AAY07$$CBD$$V@s
      ub_array@basic@builder@v_noabi@bsoncxx@@QAEXAAY07$$CBD@Z) [D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\view_and_value.vcxproj]
      view_and_value.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall bsoncxx::v_noabi::builder::basic::sub_document::sub_document(class bsoncxx::v_noabi::builder::
      core *)" (_imp??0sub_document@basic@builder@v_noabi@bsoncxx@@QAE@PAVcore@234@@Z) referenced in function "public: __thiscall bsoncxx::v_noabi::builder::basic::document::document(void)" (??0document@
      basic@builder@v_noabi@bsoncxx@@QAE@XZ) [D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\view_and_value.vcxproj]
      view_and_value.obj : error LNK2019: unresolved external symbol "_declspec(dllimport) public: void __thiscall bsoncxx::v_noabi::builder::basic::sub_document::append(void)" (imp?append@sub_document
      @basic@builder@v_noabi@bsoncxx@@QAEXXZ) referenced in function "public: void __thiscall bsoncxx::v_noabi::builder::basic::sub_document::append<class std::tuple<char const (&)[8],class <lambda_c8016f0
      f43fec5746f6c2b9c70eb508a> &&> >(class std::tuple<char const (&)[8],class <lambda_c8016f0f43fec5746f6c2b9c70eb508a> &&> &&)" (??$append@V?$tuple@AAY07$$CBD$$QAV<lambda_c8016f0f43fec5746f6c2b9c70eb508
      a>@@@std@@$$V@sub_document@basic@builder@v_noabi@bsoncxx@@QAEX$$QAV?$tuple@AAY07$$CBD$$QAV<lambda_c8016f0f43fec5746f6c2b9c70eb508a>@@@std@@@Z) [D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\view_and_
      value.vcxproj]
      D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\Debug\view_and_value.exe : fatal error LNK1120: 4 unresolved externals [D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\view_and_value.vcxproj]
      Done Building Project "D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\view_and_value.vcxproj" (default targets) – FAILED.
      "D:\GITRepos\mongo-cxx-driver\examples\examples.vcxproj" (default target) (1) ->
      "D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\builder_basic.vcxproj" (default target) (6) ->
      (Link target) ->
      builder_basic.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall bsoncxx::v_noabi::builder::basic::sub_array::sub_array(class bsoncxx::v_noabi::builder::core
      *)" (_imp??0sub_array@basic@builder@v_noabi@bsoncxx@@QAE@PAVcore@234@@Z) referenced in function "void __vectorcall bsoncxx::v_noabi::builder::basic::impl::generic_append<class <lambda_5827542815269
      f79f1f8355b8a8e9e6b> >(class bsoncxx::v_noabi::builder::core *,class <lambda_5827542815269f79f1f8355b8a8e9e6b> &&)" (??$generic_append@V<lambda_5827542815269f79f1f8355b8a8e9e6b>@@@impl@basic@builder@
      v_noabi@bsoncxx@@YQXPAVcore@234@$$QAV<lambda_5827542815269f79f1f8355b8a8e9e6b>@@@Z) [D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\builder_basic.vcxproj]
      builder_basic.obj : error LNK2019: unresolved external symbol "_declspec(dllimport) public: void __thiscall bsoncxx::v_noabi::builder::basic::sub_array::append(void)" (imp?append@sub_array@basi
      c@builder@v_noabi@bsoncxx@@QAEXXZ) referenced in function "public: void __thiscall bsoncxx::v_noabi::builder::basic::sub_array::append<char const (&)[6]>(char const (&)[6])" (??$append@AAY05$$CBD$$V@
      sub_array@basic@builder@v_noabi@bsoncxx@@QAEXAAY05$$CBD@Z) [D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\builder_basic.vcxproj]
      builder_basic.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall bsoncxx::v_noabi::builder::basic::sub_document::sub_document(class bsoncxx::v_noabi::builder:
      :core *)" (_imp??0sub_document@basic@builder@v_noabi@bsoncxx@@QAE@PAVcore@234@@Z) referenced in function "void __vectorcall bsoncxx::v_noabi::builder::basic::impl::generic_append<class <lambda_26fe
      b9ef0b7daaa6792f9543bbb2a482> >(class bsoncxx::v_noabi::builder::core *,class <lambda_26feb9ef0b7daaa6792f9543bbb2a482> &&)" (??$generic_append@V<lambda_26feb9ef0b7daaa6792f9543bbb2a482>@@@impl@basic
      @builder@v_noabi@bsoncxx@@YQXPAVcore@234@$$QAV<lambda_26feb9ef0b7daaa6792f9543bbb2a482>@@@Z) [D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\builder_basic.vcxproj]
      builder_basic.obj : error LNK2019: unresolved external symbol "_declspec(dllimport) public: void __thiscall bsoncxx::v_noabi::builder::basic::sub_document::append(void)" (imp?append@sub_documen
      t@basic@builder@v_noabi@bsoncxx@@QAEXXZ) referenced in function "public: void __thiscall bsoncxx::v_noabi::builder::basic::sub_document::append<class std::tuple<char const (&)[4],struct bsoncxx::v_no
      abi::types::b_bool &&> >(class std::tuple<char const (&)[4],struct bsoncxx::v_noabi::types::b_bool &&> &&)" (??$append@V?$tuple@AAY03$$CBD$$QAUb_bool@types@v_noabi@bsoncxx@@@std@@$$V@sub_document@bas
      ic@builder@v_noabi@bsoncxx@@QAEX$$QAV?$tuple@AAY03$$CBD$$QAUb_bool@types@v_noabi@bsoncxx@@@std@@@Z) [D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\builder_basic.vcxproj]
      D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\Debug\builder_basic.exe : fatal error LNK1120: 4 unresolved externals [D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\builder_basic.vcxproj]
      ... and ...
      "D:\GITRepos\mongo-cxx-driver\examples\examples.vcxproj" (default target) (1) ->
      "D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\view_and_value.vcxproj" (default target) (19) ->
      view_and_value.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall bsoncxx::v_noabi::builder::basic::sub_array::sub_array(class bsoncxx::v_noabi::builder::core
      *)" (_imp??0sub_array@basic@builder@v_noabi@bsoncxx@@QAE@PAVcore@234@@Z) referenced in function "void __vectorcall bsoncxx::v_noabi::builder::basic::impl::generic_append<class <lambda_c8016f0f43fe
      c5746f6c2b9c70eb508a> >(class bsoncxx::v_noabi::builder::core *,class <lambda_c8016f0f43fec5746f6c2b9c70eb508a> &&)" (??$generic_append@V<lambda_c8016f0f43fec5746f6c2b9c70eb508a>@@@impl@basic@builder
      @v_noabi@bsoncxx@@YQXPAVcore@234@$$QAV<lambda_c8016f0f43fec5746f6c2b9c70eb508a>@@@Z) [D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\view_and_value.vcxproj]
      view_and_value.obj : error LNK2019: unresolved external symbol "_declspec(dllimport) public: void __thiscall bsoncxx::v_noabi::builder::basic::sub_array::append(void)" (imp?append@sub_array@bas
      ic@builder@v_noabi@bsoncxx@@QAEXXZ) referenced in function "public: void __thiscall bsoncxx::v_noabi::builder::basic::sub_array::append<char const (&)[8]>(char const (&)[8])" (??$append@AAY07$$CBD$$V
      @sub_array@basic@builder@v_noabi@bsoncxx@@QAEXAAY07$$CBD@Z) [D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\view_and_value.vcxproj]
      view_and_value.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall bsoncxx::v_noabi::builder::basic::sub_document::sub_document(class bsoncxx::v_noabi::builder
      ::core *)" (_imp??0sub_document@basic@builder@v_noabi@bsoncxx@@QAE@PAVcore@234@@Z) referenced in function "public: __thiscall bsoncxx::v_noabi::builder::basic::document::document(void)" (??0documen
      t@basic@builder@v_noabi@bsoncxx@@QAE@XZ) [D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\view_and_value.vcxproj]
      view_and_value.obj : error LNK2019: unresolved external symbol "_declspec(dllimport) public: void __thiscall bsoncxx::v_noabi::builder::basic::sub_document::append(void)" (imp?append@sub_docume
      nt@basic@builder@v_noabi@bsoncxx@@QAEXXZ) referenced in function "public: void __thiscall bsoncxx::v_noabi::builder::basic::sub_document::append<class std::tuple<char const (&)[8],class <lambda_c8016
      f0f43fec5746f6c2b9c70eb508a> &&> >(class std::tuple<char const (&)[8],class <lambda_c8016f0f43fec5746f6c2b9c70eb508a> &&> &&)" (??$append@V?$tuple@AAY07$$CBD$$QAV<lambda_c8016f0f43fec5746f6c2b9c70eb5
      08a>@@@std@@$$V@sub_document@basic@builder@v_noabi@bsoncxx@@QAEX$$QAV?$tuple@AAY07$$CBD$$QAV<lambda_c8016f0f43fec5746f6c2b9c70eb508a>@@@std@@@Z) [D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\view_an
      d_value.vcxproj]
      D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\Debug\view_and_value.exe : fatal error LNK1120: 4 unresolved externals [D:\GITRepos\mongo-cxx-driver\examples\bsoncxx\view_and_value.vcxproj]

        Attachments

          Activity

            People

            Assignee:
            acm Andrew Morrow
            Reporter:
            sxhickman Steve Hickman
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: