generate clean massive FFI ? #3250
              
                
                  
                  
                    Answered
                  
                  by
                    emilio
                  
              
          
                  
                    
                      moolight-seashell
                    
                  
                
                  asked this question in
                Q&A
              
            -
| 
         i've been trying for a while to generate ffi for x11. the existing crates are not maintained and/or not complete. i'm getting dependency and redefinition errors all over the place, bindgen is not able to match the source tree and re-use the modules automatically ?  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            emilio
          
      
      
        Jul 15, 2025 
      
    
    Replies: 1 comment 1 reply
-
| 
         No, you need to give the right flags to bindgen like you would to the C compiler. It seems you're probably missing   | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        moolight-seashell
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
No, you need to give the right flags to bindgen like you would to the C compiler. It seems you're probably missing
-Iflags.