title: Undeclared Identifier 'MSHookIvar'
body: <p>After importing <code>substrate.h</code>, i went on using <code>MSHookIvar</code> in a function from a hooked class.
  Btw, I am trying to compile from Cygwin.
  I am unable to compile with the following errors:</p>
  
  <pre><code>Tweak.xm:20:16: error: use of undeclared identifier 'MSHookIvar'
      hookedLabel = MSHookIvar&lt;UILabel *&gt;(self, "_textLabel");
                    ^
  Tweak.xm:20:27: error: unexpected interface name 'UILabel': expected expression
      hookedLabel = MSHookIvar&lt;UILabel *&gt;(self, "_textLabel");
                               ^
  Tweak.xm:20:36: error: expected expression
      hookedLabel = MSHookIvar&lt;UILabel *&gt;(self, "_textLabel");
                                        ^
  Tweak.xm:20:38: error: expression result unused [-Werror,-Wunused-value]
      hookedLabel = MSHookIvar&lt;UILabel *&gt;(self, "_textLabel");
  </code></pre>
  
  <p>And this is my code:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import "substrate.h"
  #import "logos/logos.h"
  
  %hook DataView
  
  UILabel *hookedLabel;
  
  -(void)layoutSubviews {
      UILongPressGestureRecognizer *lpg = [[UILongPressGestureRecognizer alloc] initWithTarget: self action:@selector(handleLongPress)];
      [lpg setDelegate:self];
      [lpg setMinimumPressDuration:1];
      [self addGestureRecognizer:lpg];
  
      hookedLabel = MSHookIvar&lt;UILabel *&gt;(self, "_textLabel");
  }
  
  %end
  </code></pre>
  
  <p>I tried importing <code>logos.h</code> but it still doesn't help at all.</p>
  
  <p>EDIT: 
  I realized my substrate.h doesnt have a definition for <code>MSHookIvar</code>, what should i do?</p>
  
  <p>Please do help</p>