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
appc new -t timodule --name myawesomemodule --id com.foo
appc run -p windows --build-only
Actual
Build errors out with the warning above
Expected
Build should not error out
https://github.com/appcelerator/titanium_mobile_windows/pull/1039
Verified fix in 6.2.0.v20170724075542