hi :<br><br>I compiled the ecl by mingw for window xp.<br><br>I get a demo c code to used ecl<br><br>code is follow:<br><br><b>#include <ecl/ecl.h><br> <br>int main(int argc, char **argv) {<br> cl_boot(argc, argv);<br>
cl_object obj=c_string_to_object("\"Hello world\"");<br> cl_pprint(1,obj);<br> cl_shutdown();<br>}</b><br><br>and window xp cmd ,comment:my ecl compiled in d:\ecl-10.4.1,make install to d:\msys\1.0\local<br>
<br>gcc -Ld:\msys\1.0\local -Id:\msys\1.0\local -lsockets -lcmp -lrt -lbutecmp -lecl a.c -o a.exe<br><br>but get follow error:<br><b><br>C:\temp>gcc -Ld:\msys\1.0\local -Id:\msys\1.0\local -lsockets -lcmp -lrt -lbutecmp -lecl a.c -o a.exe<br>
In file included from d:/msys/1.0/local/ecl/ecl.h:75,<br> from a.c:6:<br>d:/msys/1.0/local/ecl/object.h:895: error: syntax error before "pthread_t"<br>d:/msys/1.0/local/ecl/object.h:895: warning: no semicolon at end of struct or union<br>
d:/msys/1.0/local/ecl/object.h:903: error: syntax error before '}' token<br>d:/msys/1.0/local/ecl/object.h:910: error: syntax error before "pthread_mutex_t"<br>d:/msys/1.0/local/ecl/object.h:910: warning: no semicolon at end of struct or union<br>
d:/msys/1.0/local/ecl/object.h:915: error: syntax error before "pthread_cond_t"<br>d:/msys/1.0/local/ecl/object.h:915: warning: no semicolon at end of struct or union<br>d:/msys/1.0/local/ecl/object.h:987: error: field `process' has incomplete type<br>
d:/msys/1.0/local/ecl/object.h:988: error: field `lock' has incomplete type<br>d:/msys/1.0/local/ecl/object.h:989: error: field `condition_variable' has incomplete type<br><br>thanks.<br><br><br></b>