[Ecls-list] UFFI returning double is broken?

Anri P. anri_p at mail.com
Fri Oct 11 14:45:00 UTC 2013


Finally, i've figured out what was wrong.

UFFI just generates C wrappers without an actual C function declaration, and 
by default ECL uses -w gcc option ignoring c:*suppress-compiler-warnings*.
So this results in silently using a default return int type for foreign functions.

As a workaround altering c::*cc-flags* with -include "header file" helps ( c:*user-cc-flags*
is also broken as they are appended to an entire gcc command). But generating such
declaration by ECL from an UFFI form seems to be a much better way.




More information about the ecl-devel mailing list