title: Error using scipy.weave.inline
body: <p>I am using several techniques (<strong>NumPy</strong>, <strong>Weave</strong>, <strong>Cython</strong>, <strong>Numba</strong>) to perform a Python performance benchmark. The code takes two numpy arrays of size NxN and multiplies them element-wise and stores the values in another array C.</p>
  
  <p>My <code>weave.inline()</code> code gives me a <code>scipy.weave.build_tools.CompileError</code>. I have created a minimalist piece of code which generates the same error. Could someone please help?</p>
  
  <pre><code>import time
  
  import numpy as np
  from scipy import weave
  from scipy.weave import converters
  
  
  def benchmark():
  
      N = np.array(5000, dtype=np.int)
  
      A = np.random.rand(N, N)
      B = np.random.rand(N, N)
      C = np.zeros([N, N], dtype=float)
  
      t = time.clock()
      weave_inline_loop(A, B, C, N)
      print time.clock() - t
  
  
  def weave_inline_loop(A, B, C, N):
      code = """
             int i, j;
             for (i = 0; i &lt; N; ++i)
             {
                 for (j = 0; j &lt; N; ++j)
                 {
                     C(i, j) = A(i, j) * B(i, j);
                 }
             }
             return_val = C;
             """
      C = weave.inline(code, ['A', 'B', 'C', 'N'], type_converters=converters.blitz, compiler='gcc')
  
  benchmark()
  </code></pre>