ok.<br><br>I get answer.need define marco mingw32<br><br><br>gcc -Dmingw32 -Ld:\msys\1.0\local -Id:\msys\1.0\local d:\msys\1.0\local\ecl.dll a.c -o a.exe<br><br>this work.<br><br><div class="gmail_quote">On Wed, May 12, 2010 at 8:39 AM, William Wang <span dir="ltr"><<a href="mailto:javacave@gmail.com">javacave@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">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>
</blockquote></div><br>