Delivered-To: lablgtk at yquem.inria.fr To: lablgtk at math.nagoya-u.ac.jp From: Dawid Toton Date: Tue, 04 Sep 2007 03:45:42 +0200 Lines: 30 Message-ID: References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit In-Reply-To: Subject: [Lablgtk] Re: Compiling with Cygwin/MinGW Content-Type: text/plain; charset=UTF-8; format=flowed Content-Length: 1229 I've taken sources of ocamlmklib and here is my attempt to produce DLLs: (added in the beginning of ocamlmklib.ml) .... let mkdll out implib files opts = "gcc -shared -o "^out^" "^files .... It results in: gcc -shared -o .\dlllablgtk2.dll ml_gtktree.o ml_gtktext.o ml_gtkstock.o ml_gtkrange.o ml_gtkpack.o ml_gtkmisc.o ml_gtkmenu.o ml_gtklist.o ml_gtkfile.o ml_gtkedit.o ml_gtkassistant.o ml_gtkbutton.o ml_gtkbroken.o ml_gtkbin.o ml_gtkaction.o ml_pango.o ml_gtk.o wrappers.o ml_gvaluecaml.o ml_gpointer.o ml_gobject.o ml_glib.o ml_gdk.o ml_gdkpixbuf.o -LC:/cygwin/lib -LC:/cygwin/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv gcc says about lots of undefined refences e.g.: ml_gtktree.o:ml_gtktree.c:(.text+0x11d): undefined reference to `_caml_alloc_custom' It seems that it cannot see some basic OCaml functions. How should I write mkdll and mklib funtions? let mkdll out implib files opts = ? let mklib out files opts =? Dawid Toton _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk