title: Cython cannot convert to int?
body: <p>using Anaconda, Python 3.4 and Win7 64bit, i can't get this running:</p>
  
  <p>C Code:</p>
  
  <pre><code>    int addInts(int a, int b)
  {
      return a+b;
  }
  </code></pre>
  
  <p>PYX file:</p>
  
  <pre><code>cdef extern from "square.cpp":
      int addInts(int, int)
  
  def pAddInts(int a, int b):
      return addInts(a, b)
  </code></pre>
  
  <p>and testfile:</p>
  
  <pre><code>res = callCpp.pAddInts(3, 4)
  </code></pre>
  
  <p>error message:</p>
  
  <pre><code>Traceback (most recent call last):
    File "testScript.py", line 9, in &lt;module&gt;
      res = callCpp.pAddInts(a, b)
    File "callCpp.pyx", line 16, in callCpp.pAddInts (callCpp.cpp:952)
      def pAddInts(int a, int b):
  TypeError: __int__ returned non-int (type int)
  </code></pre>
  
  <p>No problems @all with double and double*, but ints don't work..
  Whats the problem here? Thanks!</p>