Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24925

Windows: Unable to build a module with VS2017

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.2.0
    • Fix Version/s: Release 6.2.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      Windows 10 Pro
      Visual Studio 2017
      Ti SDK: 6.2.0.v20170630062735 (custom build with titanium_mobile_windows#959 vs 2017 support)

    • Story Points:
      5
    • Sprint:
      2017 Sprint 15 SDK

      Description

      Description

      When building a module on Windows (after the fix for TIMOB-24923 is in) it will error our with the below, this error occurs when building from Visual Studio too

      [WARN]  ComAbc.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl Titanium::Module::Module(class Titanium::Module &&)" (__imp_??0Module@Titanium@@QAA@$$QAV01@@Z) referenced in function "public: __cdecl Com::Abc::Abc(class Com::Abc &&)" (??0Abc@Com@@QAA@$$QAV01@@Z) [C:\Users\ewan\.titanium\vsbuild\awesomemodule\Windows10.ARM\ComAbc.vcxproj]
      [WARN]  ComAbc.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Titanium::Module & __cdecl Titanium::Module::operator=(class Titanium::Module &&)" (__imp_??4Module@Titanium@@QAAAAV01@$$QAV01@@Z) referenced in function "public: class Com::Abc & __cdecl Com::Abc::operator=(class Com::Abc &&)" (??4Abc@Com@@QAAAAV01@$$QAV01@@Z) [C:\Users\ewan\.titanium\vsbuild\awesomemodule\Windows10.ARM\ComAbc.vcxproj]
      C:\Users\ewan\.titanium\vsbuild\awesomemodule\Windows10.ARM\Release\ComAbc.dll : fatal error LNK1120: 2 unresolved externals [C:\Users\ewan\.titanium\vsbuild\awesomemodule\Windows10.ARM\ComAbc.vcxproj]
      [WARN]  ComAbc.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl Titanium::Module::Module(class Titanium::Module &&)" (__imp_??0Module@Titanium@@QAA@$$QAV01@@Z) referenced in function "public: __cdecl Com::Abc::Abc(class Com::Abc &&)" (??0Abc@Com@@QAA@$$QAV01@@Z) [C:\Users\ewan\.titanium\vsbuild\awesomemodule\Windows10.ARM\ComAbc.vcxproj]
        ComAbc.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class Titanium::Module & __cdecl Titanium::Module::operator=(class Titanium::Module &&)" (__imp_??4Module@Titanium@@QAAAAV01@$$QAV01@@Z) referenced in function "public: class Com::Abc & __cdecl Com::Abc::operator=(class Com::Abc &&)" (??4Abc@Com@@QAAAAV01@$$QAV01@@Z) [C:\Users\ewan\.titanium\vsbuild\awesomemodule\Windows10.ARM\ComAbc.vcxproj]
        C:\Users\ewan\.titanium\vsbuild\awesomemodule\Windows10.ARM\Release\ComAbc.dll : fatal error LNK1120: 2 unresolved externals [C:\Users\ewan\.titanium\vsbuild\awesomemodule\Windows10.ARM\ComAbc.vcxproj]
      

      Steps to reproduce
      1. appc new -t timodule --name myawesomemodule --id com.foo
      2. appc run -p windows --build-only
      Actual

      Build errors out with the warning above

      Expected

      Build should not error out

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Gary Mathews
              Tester:
              Ewan Harris
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-10862
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code