Date: Fri, 28 Oct 2005 09:17:18 +0900 (JST) Message-Id: <20051028.091718.45745276.garrigue at math.nagoya-u.ac.jp> To: zcode at email.it Cc: lablgtk at math.nagoya-u.ac.jp Subject: Re: new pre-release of lablgtk2 and lablGL (including win32) From: Jacques Garrigue In-Reply-To: References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Zcode > Hi, lablgtk correctly built, but when I try to build the native-code example > under minGW with ocamlopt in this way: > ocamlopt -ccopt "-L/c/gtk-2.6.8/lib" -I +lablgtk2 lablgtk.cmxa gtkInit.cmx > testGtk.ml -o testGtk.exe > (why in README.win32 ocamlopt has a -custom option ?) I get this: > > Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' > unrecognized [...] > c:\DOCUME~1\Zeta\LOCALS~1\Temp\camlstartupcf5de1.o:fake:(.text+0x109): > undefined reference to `_camlGaux__entry' [...] That's strange. I know the warnings: they come from the fact I just rename a MSVC export library for use under mingw. But this is not the problem. You "undefined references" are about ocaml code. So this looks like ocamlopt doesn't work at all. Could you try compiling and linking an ocamlopt program in this directory (not using lablgtk)? Also, did ocamlc -custom work? Jacques