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.

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to