Skip to content

[Caffe2] Error C2370 when compiling DLL. #10568

@xkszltl

Description

@xkszltl

Issue description

Getting error C2370 when compiling as DLL.
For example:

error C2370: 'caffe2::FLAGS_caffe2_use_fatal_for_enforce': redefinition; different storage class

System Info

  • PyTorch or Caffe2: C2
  • How you installed PyTorch (conda, pip, source): source
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions