On 6/16/07, Christophe TROESTLER wrote: > Hi, > > I am fighting with the compilation of ocamlodbc under windows (code > here: http://cvs.gna.org/cvsweb/ocamlodbc/?cvsroot=ocamlodbc). The > problem is [...] > (complete report attached). What I find strange is that all other > caml symbols are resolved (and ocamlrun.lib matches for > _caml_local_roots). Nothing strange: caml_local_roots is a variable (not a function) so it exported differently in case of byte/native code Ocaml runtime (dynamic/static library respectively). So you should compile your C source files with different compiler options, not just copy .obj files as the library author does. In other words, INSTALL_WIN32.bat is broken (some time ago I also run into that). Here are my changes (.diff is attached): - Fix compilation problems - Use ODBC2 - DLL support for the byte code - Dmitry Bely P.S. In fact I finally wrote a couple-line Omakefile and forgot about all that problems :)