Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6114

Windows compile failing with unresolved external symbols

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.2
    • Affects Version/s: None
    • Component/s: Build
    • Labels:
    • ALL

      cl /Fobuild\win32\release\client_build\mongo\client\examples\whereExample.obj /c src\mongo\client\examples\whereExample.cpp /TP /nologo /EHsc /W3 /wd4355 /wd4800 /wd4267 /wd4244 /Z7 /errorReport:none /O2 /MT /GL /DBOOST_ALL_NO_LIB /D_SCONS /DSUPPORT_UTF8 /D_UNICODE /DUNICODE /D_CONSOLE /D_CRT_SECURE_NO_WARNINGS /DPSAPI_VERSION=1 /DJS_C_STRINGS_ARE_UTF8 /Ibuild\win32\release\third_party\boost /Isrc\third_party\boost /Ibuild\win32\release\third_party\pcre-8.30 /Isrc\third_party\pcre-8.30 /Ibuild\win32\release /Isrc /Ibuild\win32\release\mongo /Isrc\mongo "/IC:\Program Files\Microsoft SDKs\Windows\v7.0A\Include" /IC:\10gen\buildslaves\mongo\Windows_32bit\winpcap\Include
      whereExample.cpp
      link /nologo /LTCG /DEBUG /NODEFAULTLIB:MSVCPRT /OUT:build\win32\release\client_build\clientTest.exe /LIBPATH:build\win32\release\client_build /LIBPATH:src /LIBPATH:src\client_build /LIBPATH:build\win32\release\third_party\boost /LIBPATH:src\third_party\boost "/LIBPATH:C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib" /LIBPATH:C:\10gen\buildslaves\mongo\Windows_32bit\winpcap\Lib mongoclient.lib ws2_32.lib kernel32.lib advapi32.lib Psapi.lib DbgHelp.lib user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib odbccp32.lib uuid.lib boost_thread.lib boost_filesystem.lib boost_system.lib build\win32\release\client_build\mongo\client\examples\clientTest.obj
      link /nologo /LTCG /DEBUG /NODEFAULTLIB:MSVCPRT /OUT:build\win32\release\client_build\whereExample.exe /LIBPATH:build\win32\release\client_build /LIBPATH:src /LIBPATH:src\client_build /LIBPATH:build\win32\release\third_party\boost /LIBPATH:src\third_party\boost "/LIBPATH:C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib" /LIBPATH:C:\10gen\buildslaves\mongo\Windows_32bit\winpcap\Lib mongoclient.lib ws2_32.lib kernel32.lib advapi32.lib Psapi.lib DbgHelp.lib user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib odbccp32.lib uuid.lib boost_thread.lib boost_filesystem.lib boost_system.lib build\win32\release\client_build\mongo\client\examples\whereExample.obj
      clientTest.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall mongo::DBClientConnection::runCommand(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class mongo::BSONObj const &,class mongo::BSONObj &,int,class mongo::AuthenticationTable const *)" (?runCommand@DBClientConnection@mongo@@UAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVBSONObj@2@AAV52@HPBVAuthenticationTable@2@@Z)
      clientTest.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall mongo::DBClientWithCommands::runCommand(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class mongo::BSONObj const &,class mongo::BSONObj &,int,class mongo::AuthenticationTable const *)" (?runCommand@DBClientWithCommands@mongo@@UAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVBSONObj@2@AAV52@HPBVAuthenticationTable@2@@Z)
      build\win32\release\client_build\clientTest.exe : fatal error LNK1120: 2 unresolved externals
      scons: *** [build\win32\release\client_build\clientTest.exe] Error 1120
      whereExample.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall mongo::DBClientConnection::runCommand(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class mongo::BSONObj const &,class mongo::BSONObj &,int,class mongo::AuthenticationTable const *)" (?runCommand@DBClientConnection@mongo@@UAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVBSONObj@2@AAV52@HPBVAuthenticationTable@2@@Z)
      whereExample.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall mongo::DBClientWithCommands::runCommand(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class mongo::BSONObj const &,class mongo::BSONObj &,int,class mongo::AuthenticationTable const *)" (?runCommand@DBClientWithCommands@mongo@@UAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVBSONObj@2@AAV52@HPBVAuthenticationTable@2@@Z)
      build\win32\release\client_build\whereExample.exe : fatal error LNK1120: 2 unresolved externals
      scons: building terminated because of errors.
      scons: *** [build\win32\release\client_build\whereExample.exe] Error 1120
      program finished with exit code 2
      elapsedTime=3391.194000
      

      http://buildbot.mongodb.org/builders/Windows%2032-bit/builds/5141/steps/compile/logs/stdio

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            ian@mongodb.com Ian Whalen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: