Any new symbol you add to the C file has to be defined in src/c/symbols_list.h This is the list that the preprocessor uses. Without a definition in it, there is no way to tell where the symbol is going to be located in the core library!<br>
<br>Juanjo<br><br><div class="gmail_quote">On Mon, Mar 15, 2010 at 7:10 PM, Tobias C. Rittweiler <span dir="ltr"><<a href="mailto:tcr@freebits.de">tcr@freebits.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">Juan Jose Garcia-Ripoll<br>
<<a href="mailto:juanjose.garciaripoll@googlemail.com">juanjose.garciaripoll@googlemail.com</a>> writes:<br>
<br>
</div><div class="im">> On Mon, Mar 15, 2010 at 6:31 PM, Tobias C. Rittweiler <<a href="mailto:tcr@freebits.de">tcr@freebits.de</a>>wrote:<br>
><br>
>><br>
>> SYSCALL-ERROR is probably a better name; the slot reader name<br>
>> SYSCALL-ERROR-ERRNO looks way better than the stuttering<br>
>> ERROR-WITH-ERRNO-ERRNO.<br>
>><br>
>><br>
> This name also has the advantage that it can be reused for other system<br>
> errors, such as Windows errors.<br>
><br>
> Juanjo<br>
<br>
</div>I'm trying to add the EXT:STRERROR but I'm failing miserably:<br>
<br>
Adding<br>
<br>
@(defun ext::strerror (errno)<br>
@<br>
return make_constant_base_string(strerror(fixint(errno)));<br>
@)<br>
<br>
to src/c/error.d results in<br>
<br>
../src/c/error.d:424: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token<br>
<br>
What am I missing?<br>
<div><div></div><div class="h5"><br>
-T.<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Download Intel® Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
_______________________________________________<br>
Ecls-list mailing list<br>
<a href="mailto:Ecls-list@lists.sourceforge.net">Ecls-list@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/ecls-list" target="_blank">https://lists.sourceforge.net/lists/listinfo/ecls-list</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a><br>