ecl_def_c_function(ecl_read_from_cstring("test-void"), (cl_objectfn_fixed)&test_void, 0);
   ecl_def_c_function(ecl_read_from_cstring("test-2args"), (cl_objectfn_fixed)&test_2args, 2);

C++ compilers are more strict than C ones. Forcing the type manually sometimes shuts down up.

Juanjo

--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://tream.dreamhosters.com