<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<span class="Apple-style-span" style="font-size: small; ">I defined&nbsp;USE_ALLOCA&nbsp;&nbsp;in config.h. Error is in stach_alloc.h.</span><br><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">Error :&nbsp;</font><span class="ecxApple-style-span" style="font-size:small;font-family:Tahoma">unresolved symbol _alloca, first referenced in ./libcelt/vq.obj</span></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><br></font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><br></font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">The code is in stack_alloc.h :</font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><br></font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahom
 a" size="2"><div>#if defined(VAR_ARRAYS)</div><div>.....</div><div>.....</div><div>#elif defined(USE_ALLOCA)</div><div><br></div><div>#define VARDECL(type, var) type *var</div><div><br></div><div># ifdef WIN32</div><div># &nbsp;define ALLOC(var, size, type) var = ((type*)_alloca(sizeof(type)*(size)))</div><div># else</div><div># &nbsp;define ALLOC(var, size, type) var = ((type*)alloca(sizeof(type)*(size)))</div><div># endif</div><div><br></div><div>#define SAVE_STACK</div><div>#define RESTORE_STACK</div><div>#define ALLOC_STACK</div><div><br></div><div>#else</div></font></div><div style="text-indent: 0px !important; font-family: Tahoma; font-size: 10pt; ">.....</div><div style="text-indent: 0px !important; font-family: Tahoma; font-size: 10pt; ">.....</div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">#endif /*VAR_ARRAYS*/</font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><br></font><
 /div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><br></font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">CELT has been build when&nbsp;</font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">I changed &nbsp;"</font><span class="ecxApple-style-span" style="font-size:13px;font-family:Tahoma"># &nbsp;define ALLOC(var, size, type) var = ((type*)alloca(sizeof(type)*(size)))</span><span class="ecxApple-style-span" style="font-family:Tahoma;font-size:10pt">"</span></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">with &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"# &nbsp;define ALLOC(var, size, type) var = ((type*)calloc(sizeof(type)*(size),1))"</font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">and then &nbsp; &nbsp;"# &nbsp;define ALLOC(var, size, type) var = ((ty
 pe*)malloc(sizeof(type)*(size)))",</font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2">but application is broken down. I think this is because of bad memory allocation.</font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><span class="ecxApple-tab-span" style="white-space:pre">        </span></font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><br></font></div><div style="font-size: 10pt; "><font class="ecxApple-style-span" face="Tahoma" size="2"><br></font><div id="ecxSkyDrivePlaceholder" style="font-family:Tahoma;font-size:10pt"></div><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; Date: Wed, 27 Apr 2011 11:54:27 -0400</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; From: jmvalin@jmvalin.ca</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; To: selami-tastan@windowslive.com</font><
 br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; CC: celt-dev@xiph.org</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; Subject: Re: [CELT-dev] Compile  a fixed-point version of CELT on TI C55 DSP ?</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; </font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; If you don't post the error, there's no way anyone can help you. Also,</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; </font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt;  &gt; /* We don't support visibility on Win32 */&lt; /div&gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; </font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; the &lt;/div&gt; surely doesn't help.</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; </font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; 
         Jean-Marc</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; </font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; On 11-04-27 11:24 AM, selami tastan wrote:</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; Hi ,</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; I want to test a fixed-point version of CELT on TI C55x DSP.</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; I create a config.h file that defines all the features that CCS</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; compiler. This is right ???</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; Can anyone only write any example codes (conf .h file) for that issue ?</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; In my opinion, I can 
 not compile CELT on TI C55 because of memory</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; allocation. Can anyone help ???</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; #define CELT_BUILD 1</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; /* Version extra */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; #define CELT_EXTRA_VERSION ""</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; /* Version major */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; #define CELT_MAJOR_VERSION 0</font><br><font class=
 "ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; /* Version micro */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; #define CELT_MICRO_VERSION 2</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; /* Version minor */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; #define CELT_MINOR_VERSION 5</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; /* Complete version string */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; #define CELT_VERSION "0.6.0"</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; //#define restrict</font><br><font class="ecxApple-style-span" face="Tahoma" size="2
 ">&gt; &gt; #define INLINEinline</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; #define inline inline</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; #define USE_ALLOCA 1</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; /* Enable support for TI C55X DSP */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; #define CONFIG_TI_C55X</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; /* Comment out the next line for floating-point code */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; #define FIXED_POINT 1</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font
 ><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; #define OPUS_BUILD 1</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; /* Get rid of the CELT VS compile warnings */</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; #define CUSTOM_MODES</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; /* We don't support visibility on Win32 */&lt; /div&gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; #define EXPORT</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2
 ">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt;</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; _______________________________________________</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; celt-dev mailing list</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; celt-dev@xiph.org</font><br><font class="ecxApple-style-span" face="Tahoma" size="2">&gt; &gt; http://lists.xiph.org/mailman/listinfo/celt-dev</font><br></div>                                               </body>
</html>