I think this is now fixed.<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 23, 2012 at 3:07 PM, Sylvain Ageneau <span dir="ltr"><<a href="mailto:ageneau@gmail.com" target="_blank">ageneau@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Just a note that in the previous patch, the extra "{}" is also needed in the format string because otherwise gcc complains about the extern declaration just after a label in the case of a function with no return value:</div>
<div><br></div><div>TTL:</div><div><span style="white-space:pre-wrap"> </span>extern void srand(unsigned int); srand(ecl_to_uint(V1));</div><div><span style="white-space:pre-wrap"> </span>value0=ECL_NIL; cl_env_copy->nvalues=1;</div>
<div><span style="white-space:pre-wrap"> </span>return value0; </div><div><br></div><div><br></div><div>cffi-test.c: In function ‘L1c_srand’:</div><div>cffi-test.c:16: error: expected expression before ‘extern’</div><div>
cffi-test.c: In function ‘L2test_srand’:</div><div>cffi-test.c:29: error: expected expression before ‘extern’</div><div><div class="h5"><div><br></div><div><br></div><div><br></div><div><div>On Nov 22, 2012, at 6:01 PM, Sylvain Ageneau <<a href="mailto:ageneau@gmail.com" target="_blank">ageneau@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div style="word-wrap:break-word"><div>Yes it does! cl-opengl builds fine and the GLES functions are correctly called.</div><div><br></div><div>I can't test properly yet because I still need to add the callbacks for at least some of the OpenGLES functions/extensions that are not in the pure OpenGL spec but I think it shouldn't be too much trouble.</div>
<div><br></div><div>Thanks again!</div><div><br></div><div><br></div><br><div><div>On Nov 22, 2012, at 5:41 PM, Juan Jose Garcia-Ripoll <<a href="mailto:juanjose.garciaripoll@gmail.com" target="_blank">juanjose.garciaripoll@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div class="gmail_extra">On Thu, Nov 22, 2012 at 8:27 PM, Sylvain Ageneau <span dir="ltr"><<a href="mailto:ageneau@gmail.com" target="_blank">ageneau@gmail.com</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Doing the following change seems to fix the issue:</div><div></div></blockquote></div><br>Yes, indeed I forgot about functions that do not return any value. But does the static linking now work for you?</div><div class="gmail_extra">
<br></div><div class="gmail_extra">Juanjo<br clear="all"><div><br></div>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com/" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>
</div>
</blockquote></div><br></div></blockquote></div><br></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com" target="_blank">http://juanjose.garciaripoll.googlepages.com</a><br>
</div>