Can't convert code from C to ASM (Undefined symbol)
<p>I'm trying to convert the code below from C to ASM because I'm having a tiny difficulty writing a procedure in ASM.</p>

<p>in DDOSBox the command I use: <code>tcc -v -S -r- main.c</code></p>

<p><strong>I'm getting an error:</strong> Undefined symbol _initarr in module main.c</p>

<p>Code: [<code>main.c</code>]</p>

<pre><code>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;

extern int initarr(int** arr, int n,  int (*initfunc)(int));
int getNum(int idx);

int getNum(int idx) { 
return (4*idx);
}

void main()  {
int *arr, i, n, success;
printf("\nPlease enter the array size\n");
scanf("%d",&amp;n);
success = initarr(&amp;arr, n, getNum);   
    if(!success) {
        printf("Memory Allocation Failed\n");
        return;
    } 
printf("\nThe Numbers in the allocated array are:\n");
for(i=0; i&lt;n; i++)   
    printf("%d  ", arr[i]);
return;
} 
</code></pre>