flyerjia:

error: expression must be a pointer to a complete object type



  
      github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      CUDA Extension Build Failure on Windows and MSVC 2017 72
    

    
      
        opened 
        
          
        
        Aug 29, 2018
      
      


      
        
          
          JackHunt
        
      
    
  



  Issue description
Building a custom CUDA extension fails with the following error on MSVC 2017:
<env_lib_dir>\site-packages\torch\lib\include\pybind11\cast.h(1393): error: expression must be a pointer to...



    has workaround
    module: cpp-extensions
    module: cuda
    module: pybind
    module: windows
    topic: dependency bug
    triaged