title: Undeclared identifier when compiling PerlRegExp in Delphi
body: <p>I want to use TPerlRegExp (from <a href="http://www.regular-expressions.info/delphi.html" rel="nofollow">http://www.regular-expressions.info/delphi.html</a>, halfway down the page) in my project in Delphi 2009.</p>
  
  <p>I added PerlRegEx.pas and pcre.pas to my project group, and put 'PerlRegEx' in my uses list.</p>
  
  <p>When I compile, I get the following errors:</p>
  
  <blockquote>
    <p>[DCC Error] PerlRegEx.pas(305): E2003 Undeclared identifier:
    'pcre_dispose'</p>
    
    <p>[DCC Error] PerlRegEx.pas(533): E2003 Undeclared identifier:
    'pcre_dispose'</p>
    
    <p>[DCC Fatal Error] test.dpr(21): F2063 Could not compile used unit
    '..\Shared\Classes\TPerlRegEx\PerlRegEx.pas'</p>
  </blockquote>
  
  <p>When I comment out the lines using 'pcre_dispose', it compiles ok. But I don't want to create memory leaks by not freeing things of course...so what might be causing this?</p>
  
  <p>Anyone who has an idea?</p>
  
  <p>Thanks a lot!</p>