What should i do next..?

username: JohnSidKim
cooked: <p>Hello. every one.</p>
<p>I wanna make a project with Libtorch 1.9.0_cu10.2, Opencv 4.5.3 in VS 2019 env.</p>
<p>but i couldn’t handle the issue with LNK2019, LNK1120</p>
<p>following list is what i got error</p>
<p>please answer me. thx.</p>
<p>|오류|LNK2019|__declspec(dllimport) class std::basic_string&lt;char,struct std::char_traits,class std::allocator &gt; __cdecl c10::DeviceTypeName(enum c10::DeviceType,bool) (_<em>imp</em>?DeviceTypeName@c10@<span class="mention">@YA</span>?AV?$basic_string@DU?$char_traits@D@std@<span class="mention">@V</span>?$allocator@D@2@<span class="mention">@std</span>@<span class="mention">@W4DeviceType</span>@1@_N@Z)public: void __cdecl c10::impl::InlineEvent::block(class c10::Stream const &amp;)const  (?block@?$InlineEvent@VVirtualGuardImpl@impl@c10@@<span class="mention">@impl</span>@c10@<span class="mention">@QEBAXAEBVStream</span>@3@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) class std::basic_ostream&lt;char,struct std::char_traits &gt; &amp; __cdecl c10::operator&lt;&lt;(class std::basic_ostream&lt;char,struct std::char_traits &gt; &amp;,enum c10::DeviceType) (_<em>imp</em>??6c10@<span class="mention">@YAAEAV</span>?$basic_ostream@DU?$char_traits@D@std@@<span class="mention">@std</span>@<span class="mention">@AEAV12</span>@W4DeviceType@0@<span class="mention">@Z</span>)class std::basic_ostream&lt;char,struct std::char_traits &gt; &amp; __cdecl c10::detail::_str(class std::basic_ostream&lt;char,struct std::char_traits &gt; &amp;,enum c10::DeviceType const &amp;) (??$_str@W4DeviceType@c10@@<span class="mention">@detail</span>@c10@<span class="mention">@YAAEAV</span>?$basic_ostream@DU?$char_traits@D@std@@<span class="mention">@std</span>@<span class="mention">@AEAV23</span>@AEBW4DeviceType@1@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: __cdecl c10::ValueError::ValueError(struct c10::SourceLocation,class std::basic_string&lt;char,struct std::char_traits,class std::allocator &gt;) (_<em>imp</em>??0ValueError@c10@<span class="mention">@QEAA</span>@USourceLocation@1@V?$basic_string@DU?$char_traits@D@std@<span class="mention">@V</span>?$allocator@D@2@<span class="mention">@std</span>@@<span class="mention">@Z</span>)private: static void __cdecl c10::ivalue::Future::ensureIsSubsetOfDevices(class std::vector&lt;struct c10::Device,class std::allocator &gt; const &amp;,class std::vector&lt;struct c10::Device,class std::allocator &gt; const &amp;) (?ensureIsSubsetOfDevices@Future@ivalue@c10@<span class="mention">@CAXAEBV</span>?$vector@UDevice@c10@<span class="mention">@V</span>?$allocator@UDevice@c10@@<span class="mention">@std</span>@@<span class="mention">@std</span>@<span class="mention">@0</span>@Z) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) char const * __cdecl c10::detail::torchCheckMsgImpl(char const *) (_<em>imp</em>?torchCheckMsgImpl@detail@c10@<span class="mention">@YAPEBDPEBD</span>@Z)public: void __cdecl c10::ivalue::Object::unsafeRemoveSlot(unsigned __int64) (?unsafeRemoveSlot@Object@ivalue@c10@<span class="mention">@QEAAX_K</span>@Z) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) char const * __cdecl c10::detail::torchCheckMsgImpl(char const *,char const *) (_<em>imp</em>?torchCheckMsgImpl@detail@c10@<span class="mention">@YAPEBDPEBD0</span>@Z)public: void __cdecl c10::ivalue::Future::markCompleted(struct c10::IValue,class c10::optional&lt;class std::vector&lt;class std::reference_wrapper,class std::allocator&lt;class std::reference_wrapper &gt; &gt; &gt;) (?markCompleted@Future@ivalue@c10@<span class="mention">@QEAAXUIValue</span>@3@V?$optional@V?$vector@V?$reference_wrapper@$$CBVDataPtr@c10@@<span class="mention">@std</span>@<span class="mention">@V</span>?$allocator@V?$reference_wrapper@$$CBVDataPtr@c10@@<span class="mention">@std</span>@@<span class="mention">@2</span>@<span class="mention">@std</span>@@<span class="mention">@3</span>@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) void __cdecl c10::detail::torchCheckFail(char const *,char const *,unsigned int,class std::basic_string&lt;char,struct std::char_traits,class std::allocator &gt; const &amp;) (_<em>imp</em>?torchCheckFail@detail@c10@<span class="mention">@YAXPEBD0IAEBV</span>?$basic_string@DU?$char_traits@D@std@<span class="mention">@V</span>?$allocator@D@2@<span class="mention">@std</span>@@<span class="mention">@Z</span>)public: void __cdecl c10::impl::InlineEvent::block(class c10::Stream const &amp;)const  (?block@?$InlineEvent@VVirtualGuardImpl@impl@c10@@<span class="mention">@impl</span>@c10@<span class="mention">@QEBAXAEBVStream</span>@3@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) void __cdecl c10::detail::torchCheckFail(char const *,char const *,unsigned int,char const *) (_<em>imp</em>?torchCheckFail@detail@c10@<span class="mention">@YAXPEBD0I0</span>@Z)public: void __cdecl c10::ivalue::Future::markCompleted(struct c10::IValue,class c10::optional&lt;class std::vector&lt;class std::reference_wrapper,class std::allocator&lt;class std::reference_wrapper &gt; &gt; &gt;) (?markCompleted@Future@ivalue@c10@<span class="mention">@QEAAXUIValue</span>@3@V?$optional@V?$vector@V?$reference_wrapper@$$CBVDataPtr@c10@@<span class="mention">@std</span>@<span class="mention">@V</span>?$allocator@V?$reference_wrapper@$$CBVDataPtr@c10@@<span class="mention">@std</span>@@<span class="mention">@2</span>@<span class="mention">@std</span>@@<span class="mention">@3</span>@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) void __cdecl c10::detail::torchInternalAssertFail(char const *,char const *,unsigned int,char const *,char const *) (_<em>imp</em>?torchInternalAssertFail@detail@c10@<span class="mention">@YAXPEBD0I00</span>@Z)private: __cdecl c10::intrusive_ptr&lt;struct c10::ivalue::Future,struct c10::detail::intrusive_target_default_null_type &gt;::intrusive_ptr&lt;struct c10::ivalue::Future,struct c10::detail::intrusive_target_default_null_type &gt;(struct c10::ivalue::Future *) (??0?$intrusive_ptr@UFuture@ivalue@c10@<span class="mention">@U</span>?$intrusive_target_default_null_type@UFuture@ivalue@c10@@<span class="mention">@detail</span>@3@<span class="mention">@c10</span>@<span class="mention">@AEAA</span>@PEAUFuture@ivalue@1@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) void __cdecl c10::detail::torchInternalAssertFail(char const *,char const *,unsigned int,char const *,struct c10::detail::CompileTimeEmptyString) (_<em>imp</em>?torchInternalAssertFail@detail@c10@<span class="mention">@YAXPEBD0I0UCompileTimeEmptyString</span>@12@<span class="mention">@Z</span>)public: struct c10::IValue const &amp; __cdecl c10::ivalue::Future::constValue(void)const  (?constValue@Future@ivalue@c10@<span class="mention">@QEBAAEBUIValue</span>@3@XZ) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: __cdecl c10::Device::Device(enum c10::DeviceType,signed char) (_<em>imp</em>??0Device@c10@<span class="mention">@QEAA</span>@W4DeviceType@1@C@Z)public: static void __cdecl std::_Default_allocator_traits&lt;class std::allocator &gt;::construct&lt;struct c10::Device,enum c10::DeviceType,signed char &amp;&gt;(class std::allocator &amp;,struct c10::Device * const,enum c10::DeviceType &amp;&amp;,signed char &amp;) (??$construct@UDevice@c10@<span class="mention">@W4DeviceType</span>@2@AEAC@?$_Default_allocator_traits@V?$allocator@UDevice@c10@@<span class="mention">@std</span>@@<span class="mention">@std</span>@<span class="mention">@SAXAEAV</span>?$allocator@UDevice@c10@@<span class="mention">@1</span>@QEAUDevice@c10@@$$QEAW4DeviceType@4@AEAC@Z) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: enum c10::DeviceType __cdecl c10::Device::type(void)const  (_<em>imp</em>?type@Device@c10@<span class="mention">@QEBA</span>?AW4DeviceType@2@XZ)public: __cdecl c10::impl::InlineDeviceGuard::InlineDeviceGuard(struct c10::Device) (??0?$InlineDeviceGuard@VVirtualGuardImpl@impl@c10@@<span class="mention">@impl</span>@c10@<span class="mention">@QEAA</span>@UDevice@2@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: signed char __cdecl c10::Device::index(void)const  (_<em>imp</em>?index@Device@c10@<span class="mention">@QEBACXZ</span>)public: __cdecl c10::impl::InlineDeviceGuard::InlineDeviceGuard(struct c10::Device) (??0?$InlineDeviceGuard@VVirtualGuardImpl@impl@c10@@<span class="mention">@impl</span>@c10@<span class="mention">@QEAA</span>@UDevice@2@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: bool __cdecl c10::Device::has_index(void)const  (_<em>imp</em>?has_index@Device@c10@<span class="mention">@QEBA_NXZ</span>)private: static class std::vector&lt;struct c10::Device,class std::allocator &gt; __cdecl c10::ivalue::Future::sortAndDeduplicateDevices(class c10::impl::VirtualGuardImpl const &amp;,class std::vector&lt;struct c10::Device,class std::allocator &gt;) (?sortAndDeduplicateDevices@Future@ivalue@c10@<span class="mention">@CA</span>?AV?$vector@UDevice@c10@<span class="mention">@V</span>?$allocator@UDevice@c10@@<span class="mention">@std</span>@@<span class="mention">@std</span>@<span class="mention">@AEBVVirtualGuardImpl</span>@impl@3@V45@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: bool __cdecl c10::Device::is_cpu(void)const  (_<em>imp</em>?is_cpu@Device@c10@<span class="mention">@QEBA_NXZ</span>)private: static class std::vector&lt;struct c10::Device,class std::allocator &gt; __cdecl c10::ivalue::Future::getDevicesOfDataPtrs(class c10::impl::VirtualGuardImpl const &amp;,class std::vector&lt;class std::reference_wrapper,class std::allocator&lt;class std::reference_wrapper &gt; &gt; const &amp;) (?getDevicesOfDataPtrs@Future@ivalue@c10@<span class="mention">@CA</span>?AV?$vector@UDevice@c10@<span class="mention">@V</span>?$allocator@UDevice@c10@@<span class="mention">@std</span>@@<span class="mention">@std</span>@<span class="mention">@AEBVVirtualGuardImpl</span>@impl@3@AEBV?$vector@V?$reference_wrapper@$$CBVDataPtr@c10@@<span class="mention">@std</span>@<span class="mention">@V</span>?$allocator@V?$reference_wrapper@$$CBVDataPtr@c10@@<span class="mention">@std</span>@@<span class="mention">@2</span>@<span class="mention">@5</span>@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) class std::basic_ostream&lt;char,struct std::char_traits &gt; &amp; __cdecl c10::operator&lt;&lt;(class std::basic_ostream&lt;char,struct std::char_traits &gt; &amp;,struct c10::Device const &amp;) (_<em>imp</em>??6c10@<span class="mention">@YAAEAV</span>?$basic_ostream@DU?$char_traits@D@std@@<span class="mention">@std</span>@<span class="mention">@AEAV12</span>@AEBUDevice@0@<span class="mention">@Z</span>)class std::basic_ostream&lt;char,struct std::char_traits &gt; &amp; __cdecl c10::detail::_str(class std::basic_ostream&lt;char,struct std::char_traits &gt; &amp;,struct c10::Device const &amp;) (??$_str@UDevice@c10@@<span class="mention">@detail</span>@c10@<span class="mention">@YAAEAV</span>?$basic_ostream@DU?$char_traits@D@std@@<span class="mention">@std</span>@<span class="mention">@AEAV23</span>@AEBUDevice@1@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: struct c10::Device __cdecl c10::DataPtr::device(void)const  (_<em>imp</em>?device@DataPtr@c10@<span class="mention">@QEBA</span>?AUDevice@2@XZ)private: static class std::vector&lt;struct c10::Device,class std::allocator &gt; __cdecl c10::ivalue::Future::getDevicesOfDataPtrs(class c10::impl::VirtualGuardImpl const &amp;,class std::vector&lt;class std::reference_wrapper,class std::allocator&lt;class std::reference_wrapper &gt; &gt; const &amp;) (?getDevicesOfDataPtrs@Future@ivalue@c10@<span class="mention">@CA</span>?AV?$vector@UDevice@c10@<span class="mention">@V</span>?$allocator@UDevice@c10@@<span class="mention">@std</span>@@<span class="mention">@std</span>@<span class="mention">@AEBVVirtualGuardImpl</span>@impl@3@AEBV?$vector@V?$reference_wrapper@$$CBVDataPtr@c10@@<span class="mention">@std</span>@<span class="mention">@V</span>?$allocator@V?$reference_wrapper@$$CBVDataPtr@c10@@<span class="mention">@std</span>@@<span class="mention">@2</span>@<span class="mention">@5</span>@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) protected: virtual __cdecl c10::intrusive_ptr_target::~intrusive_ptr_target(void) (_<em>imp</em>??1intrusive_ptr_target@c10@<span class="mention">@MEAA</span>@XZ)int <code>public: __cdecl c10::ivalue::Future::Future(class std::shared_ptr&lt;struct c10::Type&gt;,class shared_ptr&lt;struct c10::Type&gt;::vector&lt;struct c10::Device,class std::allocator&lt;struct c10::Device&gt; &gt;)'::</code>1’::dtor$2 (?dtor$2@?0???0Future@ivalue@c10@<span class="mention">@QEAA</span>@V?$shared_ptr@UType@c10@@<span class="mention">@std</span>@<span class="mention">@V</span>?$vector@UDevice@c10@<span class="mention">@V</span>?$allocator@UDevice@c10@@<span class="mention">@std</span>@@<span class="mention">@4</span>@<span class="mention">@Z</span>@4HA) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) protected: __cdecl c10::intrusive_ptr_target::intrusive_ptr_target(void) (_<em>imp</em>??0intrusive_ptr_target@c10@<span class="mention">@IEAA</span>@XZ)public: __cdecl c10::ivalue::Future::Future(class std::shared_ptr,class std::vector&lt;struct c10::Device,class std::allocator &gt;) (??0Future@ivalue@c10@<span class="mention">@QEAA</span>@V?$shared_ptr@UType@c10@@<span class="mention">@std</span>@<span class="mention">@V</span>?$vector@UDevice@c10@<span class="mention">@V</span>?$allocator@UDevice@c10@@<span class="mention">@std</span>@@<span class="mention">@4</span>@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) protected: __cdecl c10::intrusive_ptr_target::intrusive_ptr_target(class c10::intrusive_ptr_target &amp;&amp;) (_<em>imp</em>??0intrusive_ptr_target@c10@<span class="mention">@IEAA</span>@$$QEAV01@<span class="mention">@Z</span>)public: __cdecl c10::ivalue::Object::Object(struct c10::ivalue::Object &amp;&amp;) (??0Object@ivalue@c10@<span class="mention">@QEAA</span>@$$QEAU012@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) protected: class c10::intrusive_ptr_target &amp; __cdecl c10::intrusive_ptr_target::operator=(class c10::intrusive_ptr_target &amp;&amp;) (_<em>imp</em>??4intrusive_ptr_target@c10@<span class="mention">@IEAAAEAV01</span>@$$QEAV01@<span class="mention">@Z</span>)public: struct c10::ivalue::Object &amp; __cdecl c10::ivalue::Object::operator=(struct c10::ivalue::Object &amp;&amp;) (??4Object@ivalue@c10@<span class="mention">@QEAAAEAU012</span>@$$QEAU012@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) protected: __cdecl c10::intrusive_ptr_target::intrusive_ptr_target(class c10::intrusive_ptr_target const &amp;) (_<em>imp</em>??0intrusive_ptr_target@c10@<span class="mention">@IEAA</span>@AEBV01@<span class="mention">@Z</span>)public: __cdecl c10::ivalue::Object::Object(struct c10::ivalue::Object const &amp;) (??0Object@ivalue@c10@<span class="mention">@QEAA</span>@AEBU012@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) protected: class c10::intrusive_ptr_target &amp; __cdecl c10::intrusive_ptr_target::operator=(class c10::intrusive_ptr_target const &amp;) (_<em>imp</em>??4intrusive_ptr_target@c10@<span class="mention">@IEAAAEAV01</span>@AEBV01@<span class="mention">@Z</span>)public: struct c10::ivalue::Object &amp; __cdecl c10::ivalue::Object::operator=(struct c10::ivalue::Object const &amp;) (??4Object@ivalue@c10@<span class="mention">@QEAAAEAU012</span>@AEBU012@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) private: virtual void __cdecl c10::intrusive_ptr_target::release_resources(void) (_<em>imp</em>?release_resources@intrusive_ptr_target@c10@<span class="mention">@EEAAXXZ</span>)private: void <em><em>cdecl c10::intrusive_ptr&lt;struct c10::ivalue::Future,struct c10::detail::intrusive_target_default_null_type &gt;::reset</em>(void) (?reset</em>@?$intrusive_ptr@UFuture@ivalue@c10@<span class="mention">@U</span>?$intrusive_target_default_null_type@UFuture@ivalue@c10@@<span class="mention">@detail</span>@3@<span class="mention">@c10</span>@<span class="mention">@AEAAXXZ</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: __cdecl c10::MessageLogger::MessageLogger(char const *,int,int) (_<em>imp</em>??0MessageLogger@c10@<span class="mention">@QEAA</span>@PEBDHH@Z)public: void __cdecl c10::ivalue::Future::setErrorIfNeeded(class std::exception_ptr) (?setErrorIfNeeded@Future@ivalue@c10@<span class="mention">@QEAAXVexception_ptr</span>@std@@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: __cdecl c10::MessageLogger::~MessageLogger(void) (_<em>imp</em>??1MessageLogger@c10@<span class="mention">@QEAA</span>@XZ)public: void __cdecl c10::ivalue::Future::setErrorIfNeeded(class std::exception_ptr) (?setErrorIfNeeded@Future@ivalue@c10@<span class="mention">@QEAAXVexception_ptr</span>@std@@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: class std::basic_stringstream&lt;char,struct std::char_traits,class std::allocator &gt; &amp; __cdecl c10::MessageLogger::stream(void) (_<em>imp</em>?stream@MessageLogger@c10@<span class="mention">@QEAAAEAV</span>?$basic_stringstream@DU?$char_traits@D@std@<span class="mention">@V</span>?$allocator@D@2@<span class="mention">@std</span>@<span class="mention">@XZ</span>)public: void __cdecl c10::ivalue::Future::setErrorIfNeeded(class std::exception_ptr) (?setErrorIfNeeded@Future@ivalue@c10@<span class="mention">@QEAAXVexception_ptr</span>@std@@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: virtual __cdecl c10::impl::DeviceGuardImplInterface::~DeviceGuardImplInterface(void) (_<em>imp</em>??1DeviceGuardImplInterface@impl@c10@<span class="mention">@UEAA</span>@XZ)int <code>public: __cdecl c10::impl::VirtualGuardImpl::VirtualGuardImpl(enum impl::DeviceType)'::</code>1’::dtor$0 (?dtor$0@?0???0VirtualGuardImpl@impl@c10@<span class="mention">@QEAA</span>@W4DeviceType@2@<span class="mention">@Z</span>@4HA) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: __cdecl c10::impl::DeviceGuardImplInterface::DeviceGuardImplInterface(void) (_<em>imp</em>??0DeviceGuardImplInterface@impl@c10@<span class="mention">@QEAA</span>@XZ)public: __cdecl c10::impl::VirtualGuardImpl::VirtualGuardImpl(enum c10::DeviceType) (??0VirtualGuardImpl@impl@c10@<span class="mention">@QEAA</span>@W4DeviceType@2@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: __cdecl c10::impl::DeviceGuardImplInterface::DeviceGuardImplInterface(struct c10::impl::DeviceGuardImplInterface const &amp;) (_<em>imp</em>??0DeviceGuardImplInterface@impl@c10@<span class="mention">@QEAA</span>@AEBU012@<span class="mention">@Z</span>)public: __cdecl c10::impl::VirtualGuardImpl::VirtualGuardImpl(class c10::impl::VirtualGuardImpl &amp;&amp;) (??0VirtualGuardImpl@impl@c10@<span class="mention">@QEAA</span>@$$QEAV012@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: struct c10::impl::DeviceGuardImplInterface &amp; __cdecl c10::impl::DeviceGuardImplInterface::operator=(struct c10::impl::DeviceGuardImplInterface const &amp;) (_<em>imp</em>??4DeviceGuardImplInterface@impl@c10@<span class="mention">@QEAAAEAU012</span>@AEBU012@<span class="mention">@Z</span>)public: class c10::impl::VirtualGuardImpl &amp; __cdecl c10::impl::VirtualGuardImpl::operator=(class c10::impl::VirtualGuardImpl &amp;&amp;) (??4VirtualGuardImpl@impl@c10@<span class="mention">@QEAAAEAV012</span>@$$QEAV012@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: __cdecl c10::IValue::IValue(struct c10::IValue const &amp;) (_<em>imp</em>??0IValue@c10@<span class="mention">@QEAA</span>@AEBU01@<span class="mention">@Z</span>)public: static void __cdecl std::_Default_allocator_traits&lt;class std::allocator &gt;::construct&lt;struct c10::IValue,struct c10::IValue &amp;&gt;(class std::allocator &amp;,struct c10::IValue * const,struct c10::IValue &amp;) (??$construct@UIValue@c10@<span class="mention">@AEAU12</span>@@?$_Default_allocator_traits@V?$allocator@UIValue@c10@@<span class="mention">@std</span>@@<span class="mention">@std</span>@<span class="mention">@SAXAEAV</span>?$allocator@UIValue@c10@@<span class="mention">@1</span>@QEAUIValue@c10@<span class="mention">@AEAU34</span>@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: __cdecl c10::IValue::IValue(struct c10::IValue &amp;&amp;) (_<em>imp</em>??0IValue@c10@<span class="mention">@QEAA</span>@$$QEAU01@<span class="mention">@Z</span>)public: static void __cdecl std::_Default_allocator_traits&lt;class std::allocator &gt;::construct&lt;struct c10::IValue,struct c10::IValue&gt;(class std::allocator &amp;,struct c10::IValue * const,struct c10::IValue &amp;&amp;) (??$construct@UIValue@c10@<span class="mention">@U12</span>@@?$_Default_allocator_traits@V?$allocator@UIValue@c10@@<span class="mention">@std</span>@@<span class="mention">@std</span>@<span class="mention">@SAXAEAV</span>?$allocator@UIValue@c10@@<span class="mention">@1</span>@QEAUIValue@c10@@$$QEAU34@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: __cdecl c10::IValue::~IValue(void) (_<em>imp</em>??1IValue@c10@<span class="mention">@QEAA</span>@XZ)int <code>public: __cdecl c10::ivalue::Future::Future(class std::shared_ptr&lt;struct c10::Type&gt;,class shared_ptr&lt;struct c10::Type&gt;::vector&lt;struct c10::Device,class std::allocator&lt;struct c10::Device&gt; &gt;)'::</code>1’::dtor$5 (?dtor$5@?0???0Future@ivalue@c10@<span class="mention">@QEAA</span>@V?$shared_ptr@UType@c10@@<span class="mention">@std</span>@<span class="mention">@V</span>?$vector@UDevice@c10@<span class="mention">@V</span>?$allocator@UDevice@c10@@<span class="mention">@std</span>@@<span class="mention">@4</span>@<span class="mention">@Z</span>@4HA) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: struct c10::IValue &amp; __cdecl c10::IValue::operator=(struct c10::IValue &amp;&amp;)&amp;  (_<em>imp</em>??4IValue@c10@<span class="mention">@QEGAAAEAU01</span>@$$QEAU01@<span class="mention">@Z</span>)struct c10::IValue * __cdecl std::_Move_unchecked&lt;struct c10::IValue *,struct c10::IValue *&gt;(struct c10::IValue *,struct c10::IValue *,struct c10::IValue *) (??$_Move_unchecked@PEAUIValue@c10@<span class="mention">@PEAU12</span>@<span class="mention">@std</span>@<span class="mention">@YAPEAUIValue</span>@c10@<span class="mention">@PEAU12</span>@00@Z) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: struct c10::IValue &amp; __cdecl c10::IValue::operator=(struct c10::IValue const &amp;)&amp;  (_<em>imp</em>??4IValue@c10@<span class="mention">@QEGAAAEAU01</span>@AEBU01@<span class="mention">@Z</span>)struct c10::IValue * __cdecl std::_Copy_unchecked&lt;struct c10::IValue *,struct c10::IValue *&gt;(struct c10::IValue *,struct c10::IValue *,struct c10::IValue *) (??$_Copy_unchecked@PEAUIValue@c10@<span class="mention">@PEAU12</span>@<span class="mention">@std</span>@<span class="mention">@YAPEAUIValue</span>@c10@<span class="mention">@PEAU12</span>@00@Z) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: __cdecl c10::IValue::IValue(void) (_<em>imp</em>??0IValue@c10@<span class="mention">@QEAA</span>@XZ)public: static void __cdecl std::_Default_allocator_traits&lt;class std::allocator &gt;::construct(class std::allocator &amp;,struct c10::IValue * const) (??$construct@UIValue@c10@@$$V@?$_Default_allocator_traits@V?$allocator@UIValue@c10@@<span class="mention">@std</span>@@<span class="mention">@std</span>@<span class="mention">@SAXAEAV</span>?$allocator@UIValue@c10@@<span class="mention">@1</span>@QEAUIValue@c10@@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: __cdecl c10::StrongTypePtr::~StrongTypePtr(void) (_<em>imp</em>??1StrongTypePtr@c10@<span class="mention">@QEAA</span>@XZ)int <code>public: __cdecl c10::ivalue::Object::Object(struct ivalue::Object::dtor$1 const &amp;)'::</code>1’::dtor$1 (?dtor$1@?0???0Object@ivalue@c10@<span class="mention">@QEAA</span>@AEBU012@<span class="mention">@Z</span>@4HA) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: __cdecl c10::StrongTypePtr::StrongTypePtr(struct c10::StrongTypePtr const &amp;) (_<em>imp</em>??0StrongTypePtr@c10@<span class="mention">@QEAA</span>@AEBU01@<span class="mention">@Z</span>)public: __cdecl c10::ivalue::Object::Object(struct c10::ivalue::Object const &amp;) (??0Object@ivalue@c10@<span class="mention">@QEAA</span>@AEBU012@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: __cdecl c10::StrongTypePtr::StrongTypePtr(struct c10::StrongTypePtr &amp;&amp;) (_<em>imp</em>??0StrongTypePtr@c10@<span class="mention">@QEAA</span>@$$QEAU01@<span class="mention">@Z</span>)public: static class c10::intrusive_ptr&lt;struct c10::ivalue::Object,struct c10::detail::intrusive_target_default_null_type &gt; __cdecl c10::intrusive_ptr&lt;struct c10::ivalue::Object,struct c10::detail::intrusive_target_default_null_type &gt;::make&lt;struct c10::StrongTypePtr,unsigned __int64 &amp;&gt;(struct c10::StrongTypePtr &amp;&amp;,unsigned __int64 &amp;) (??$make@UStrongTypePtr@c10@<span class="mention">@AEA_K</span>@?$intrusive_ptr@UObject@ivalue@c10@<span class="mention">@U</span>?$intrusive_target_default_null_type@UObject@ivalue@c10@@<span class="mention">@detail</span>@3@<span class="mention">@c10</span>@<span class="mention">@SA</span>?AV01@$$QEAUStrongTypePtr@1@AEA_K@Z) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: struct c10::StrongTypePtr &amp; __cdecl c10::StrongTypePtr::operator=(struct c10::StrongTypePtr const &amp;) (_<em>imp</em>??4StrongTypePtr@c10@<span class="mention">@QEAAAEAU01</span>@AEBU01@<span class="mention">@Z</span>)public: struct c10::ivalue::Object &amp; __cdecl c10::ivalue::Object::operator=(struct c10::ivalue::Object const &amp;) (??4Object@ivalue@c10@<span class="mention">@QEAAAEAU012</span>@AEBU012@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: struct c10::StrongTypePtr &amp; __cdecl c10::StrongTypePtr::operator=(struct c10::StrongTypePtr &amp;&amp;) (_<em>imp</em>??4StrongTypePtr@c10@<span class="mention">@QEAAAEAU01</span>@$$QEAU01@<span class="mention">@Z</span>)public: struct c10::ivalue::Object &amp; __cdecl c10::ivalue::Object::operator=(struct c10::ivalue::Object &amp;&amp;) (??4Object@ivalue@c10@<span class="mention">@QEAAAEAU012</span>@$$QEAU012@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|private: static class std::vector&lt;class std::reference_wrapper,class std::allocator&lt;class std::reference_wrapper &gt; &gt; __cdecl c10::ivalue::Future::extractDataPtrs(struct c10::IValue const &amp;) (?extractDataPtrs@Future@ivalue@c10@<span class="mention">@CA</span>?AV?$vector@V?$reference_wrapper@$$CBVDataPtr@c10@@<span class="mention">@std</span>@<span class="mention">@V</span>?$allocator@V?$reference_wrapper@$$CBVDataPtr@c10@@<span class="mention">@std</span>@@<span class="mention">@2</span>@<span class="mention">@std</span>@<span class="mention">@AEBUIValue</span>@3@<span class="mention">@Z</span>)public: void __cdecl c10::ivalue::Future::markCompleted(struct c10::IValue,class c10::optional&lt;class std::vector&lt;class std::reference_wrapper,class std::allocator&lt;class std::reference_wrapper &gt; &gt; &gt;) (?markCompleted@Future@ivalue@c10@<span class="mention">@QEAAXUIValue</span>@3@V?$optional@V?$vector@V?$reference_wrapper@$$CBVDataPtr@c10@@<span class="mention">@std</span>@<span class="mention">@V</span>?$allocator@V?$reference_wrapper@$$CBVDataPtr@c10@@<span class="mention">@std</span>@@<span class="mention">@2</span>@<span class="mention">@std</span>@@<span class="mention">@3</span>@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|private: void __cdecl c10::ivalue::Object::resizeObject(unsigned __int64) (?resizeObject@Object@ivalue@c10@<span class="mention">@AEAAX_K</span>@Z)public: void __cdecl c10::ivalue::Object::setSlot(unsigned __int64,struct c10::IValue) (?setSlot@Object@ivalue@c10@<span class="mention">@QEAAX_KUIValue</span>@3@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: __cdecl torch::jit::Module::Module(void) (_<em>imp</em>??0Module@jit@torch@<span class="mention">@QEAA</span>@XZ)main 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: __cdecl torch::jit::Module::~Module(void) (_<em>imp</em>??1Module@jit@torch@<span class="mention">@QEAA</span>@XZ)main 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) public: struct torch::jit::Module &amp; __cdecl torch::jit::Module::operator=(struct torch::jit::Module const &amp;) (_<em>imp</em>??4Module@jit@torch@<span class="mention">@QEAAAEAU012</span>@AEBU012@<span class="mention">@Z</span>)main 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) struct torch::jit::Module __cdecl torch::jit::load(class std::basic_string&lt;char,struct std::char_traits,class std::allocator &gt; const &amp;,class c10::optional) (_<em>imp</em>?load@jit@torch@<span class="mention">@YA</span>?AUModule@12@AEBV?$basic_string@DU?$char_traits@D@std@<span class="mention">@V</span>?$allocator@D@2@<span class="mention">@std</span>@<span class="mention">@V</span>?$optional@UDevice@c10@@<span class="mention">@c10</span>@@<span class="mention">@Z</span>)main 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2001|확인할 수 없는 외부 기호 public: __cdecl c10::Error::Error(class c10::Error const &amp;) (??0Error@c10@<span class="mention">@QEAA</span>@AEBV01@<span class="mention">@Z</span>)|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2001|확인할 수 없는 외부 기호 public: __cdecl c10::ValueError::ValueError(class c10::ValueError const &amp;) (??0ValueError@c10@<span class="mention">@QEAA</span>@AEBV01@<span class="mention">@Z</span>)|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2001|확인할 수 없는 외부 기호 public: virtual __cdecl c10::ValueError::~ValueError(void) (??1ValueError@c10@<span class="mention">@UEAA</span>@XZ)|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2001|확인할 수 없는 외부 기호 private: virtual void __cdecl c10::intrusive_ptr_target::release_resources(void) (?release_resources@intrusive_ptr_target@c10@<span class="mention">@EEAAXXZ</span>)|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK2019|__declspec(dllimport) struct std::atomic&lt;struct c10::impl::DeviceGuardImplInterface const *&gt; * c10::impl::device_guard_impl_registry (_<em>imp</em>?device_guard_impl_registry@impl@c10@<span class="mention">@3PAU</span>?$atomic@PEBUDeviceGuardImplInterface@impl@c10@@<span class="mention">@std</span>@<span class="mention">@A</span>)struct c10::impl::DeviceGuardImplInterface const * __cdecl c10::impl::getDeviceGuardImpl(enum c10::DeviceType) (?getDeviceGuardImpl@impl@c10@<span class="mention">@YAPEBUDeviceGuardImplInterface</span>@12@W4DeviceType@2@<span class="mention">@Z</span>) 함수에서 참조되는 확인할 수 없는 외부 기호|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\Libtorch_eval\Libtorch_eval.obj|1||<br>
|오류|LNK1120|52개의 확인할 수 없는 외부 참조입니다.|Libtorch_eval|D:\00.Jskim\06.Libtorch_eval\Libtorch_eval\x64\Debug\Libtorch_eval.exe|1||</p>

username: JohnSidKim
cooked: <p>also i got same problem. that’s LNK2001 with __declspec(dllimport) lnk2001.</p>
<p>it occured when the header(torch/torch.h) include.</p>
<p>how can i build it? <img src="https://discuss.pytorch.org/images/emoji/apple/frowning.png?v=10" title=":frowning:" class="emoji" alt=":frowning:"> please help me somebody…!!</p>

username: JohnSidKim
cooked: <p>I solved that problem myself by changing a registration order in project properties/linker/add dependencies to c10.lib, torch.lib, c10_cuda.lib … etc.<br>
thanks god…</p>

username: lavoos
cooked: <p>Please share more details on what env, proj settings that you has changed. Espesially on changes in MSVS proj files. Thanks.</p>