Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Caffe2] Failed to build dispatch_test. Error LNK2001: unresolved external symbol #10746

Open
xkszltl opened this issue Aug 21, 2018 · 0 comments
Labels

Comments

@xkszltl
Copy link
Contributor

xkszltl commented Aug 21, 2018

Issue description

Getting LNK2001 on Windows for dispatch_test.

pytorch\build\caffe2\core\dispatch\dispatch_test.vcxproj" (default target) (56) ->
(Link target) -> 
  KernelRegistration.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: __cdecl caffe2::TypeIdentifier::TypeIdentifier(unsigned short)" (__imp_??0TypeIdentifier@caffe2@@AEAA@G@Z) [pytorch\build\caffe2\core\dispatch\dispatch_test.vcxproj]
  OpSchema.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: __cdecl caffe2::TypeIdentifier::TypeIdentifier(unsigned short)" (__imp_??0TypeIdentifier@caffe2@@AEAA@G@Z) [pytorch\build\caffe2\core\dispatch\dispatch_test.vcxproj]
  OpSchemaRegistration.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: __cdecl caffe2::TypeIdentifier::TypeIdentifier(unsigned short)" (__imp_??0TypeIdentifier@caffe2@@AEAA@G@Z) [pytorch\build\caffe2\core\dispatch\dispatch_test.vcxproj]
  OpSchema_test.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: __cdecl caffe2::TypeIdentifier::TypeIdentifier(unsigned short)" (__imp_??0TypeIdentifier@caffe2@@AEAA@G@Z) [pytorch\build\caffe2\core\dispatch\dispatch_test.vcxproj]
  Dispatcher.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: __cdecl caffe2::TypeIdentifier::TypeIdentifier(unsigned short)" (__imp_??0TypeIdentifier@caffe2@@AEAA@G@Z) [pytorch\build\caffe2\core\dispatch\dispatch_test.vcxproj]
  DispatchKey.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: __cdecl caffe2::TypeIdentifier::TypeIdentifier(unsigned short)" (__imp_??0TypeIdentifier@caffe2@@AEAA@G@Z) [pytorch\build\caffe2\core\dispatch\dispatch_test.vcxproj]
  DispatchTable.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: __cdecl caffe2::TypeIdentifier::TypeIdentifier(unsigned short)" (__imp_??0TypeIdentifier@caffe2@@AEAA@G@Z) [pytorch\build\caffe2\core\dispatch\dispatch_test.vcxproj]
  pytorch\build\bin\RelWithDebInfo\dispatch_test.exe : fatal error LNK1120: 1 unresolved externals [pytorch\build\caffe2\core\dispatch\dispatch_test.vcxproj]

System Info

  • PyTorch or Caffe2: C2
  • How you installed PyTorch (conda, pip, source): src
  • Build command you used (if compiling from source): cmake
  • OS: Win10
  • PyTorch version: master
  • VS version (if compiling from source): 2017
  • CMake version: 3.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants