title: g++ error: ‘stricmp’ was not declared in this scope (but OK for 'strcmp')
body: <p>I am trying to compile the following very very simple piece of source code:</p>
  
  <pre><code>#include &lt;cstring&gt;
  // #include &lt;string.h&gt;
  // using namespace std;
  
  class Helper {
  public:
      int cStringsAreEqual(const char *s1, const char *s2) {
          return stricmp(s1, s2);
      }
  };
  </code></pre>
  
  <p>... but I am getting the following error message:</p>
  
  <pre><code>   g++ error: ‘stricmp’ was not declared in this scope
  </code></pre>
  
  <p>However when I use <strong>strcmp()</strong> instead of <strong>stricmp()</strong> then everything is fine!</p>
  
  <p>What can be wrong here? Shouldn't stricmp() be allowed when strcmp() is allowed?</p>
  
  <p>Sureley, this all could be written in a much better way without using strcmp/stricmp.</p>
  
  <p>But that's not the point here.</p>
  
  <p>I am porting a piece of software - which makes much use of calls to stricmp(). And if somehow possible I would like to avoid all of the efforts needed to change every call to stricmp.</p>
  
  <p>Any help on this would be very much appreciated!</p>
  
  <p>BTW: I am using Ubuntu karmic OS (v9.10) with g++ v4.4.1.</p>
  
  <p>BTW: as you can see I also made some trials with '#include string.h' or with 'namespace std' but nothing helped.</p>