Multiple LNK2005 errors building java bindings on Windows with Conda
Attempting to build the Java bindings on Windows with conda-forge/conda-build results in the following multiple LNK2005 errors [build log]:
ndscxx.lib(ndscxx.dll) : error LNK2005: "public: __cdecl NDS::abi_0::channel::channel(void)" (??0channel@abi_0@NDS@@QEAA@XZ) already defined in nds_channel.cc.obj
ndscxx.lib(ndscxx.dll) : error LNK2005: "public: __cdecl NDS::abi_0::channel::channel(class NDS::abi_0::channel const &)" (??0channel@abi_0@NDS@@QEAA@AEBV012@@Z) already defined in nds_channel.cc.obj
ndscxx.lib(ndscxx.dll) : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl NDS::abi_0::channel::NameLong(void)const " (?NameLong@channel@abi_0@NDS@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) already defined in nds_channel.cc.obj
ndscxx.lib(ndscxx.dll) : error LNK2005: "public: void __cdecl NDS::abi_0::channel::swap(class NDS::abi_0::channel &)" (?swap@channel@abi_0@NDS@@QEAAXAEAV123@@Z) already defined in nds_channel.cc.obj
ndscxx.lib(ndscxx.dll) : error LNK2005: "public: static bool __cdecl NDS::abi_0::channel::IsSecondTrend(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?IsSecondTrend@channel@abi_0@NDS@@SA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) already defined in nds_availability.cc.obj
...
many more
...
Is there an easy fix?