Re: Re: Custom linking for MinGW gives unwanted dependency on cygwin1.dll

Matthieu Dubuget <[email protected]> Wed, 21 Jan 2009 13:01:37 +0100
Newsgroups gmane.comp.lang.ocaml.lib.gtk
Message-ID <[email protected]>
2009/1/4 Alain Frisch <[email protected]>

> On 1/4/2009 11:22 AM, Mike Spivey wrote:
>
>> I'm using the MinGW port of OCaml under Cygwin and trying to build a
>> self-contained native windows application that uses lablgtk2.  What I
>> find is that linking with 'ocamlc -custom' results in an executable that
>> depends on cygwin1.dll.  Further investigation reveals that cygwin1.dll
>> is being used for some math functions, and that adding '-ccopt
>> -L/lib/mingw' solves the problem.
>>
>
> Oops, flexlink used /lib and /lib/mingw, in this order, and they should be
> swapped. This will be fixed in the next released. Thanks for the feedback.
>

I faced a similar (?) problem when linking a standalone program using
libglade.

flexlink complains: Cannot find file "libglade-2.0.dll"

This worked after I added -cclib -Lc:/gtk/lib to ocamlopt parameters.

1/ where from should this information come from? Maybe when lablglade.cmxa
was compiled?
2/ should flexlink use some environment variable for some more path to
search? (c:/gtk/lib is in $LIB)

Salutations

_______________________________________________
Lablgtk mailing list
[email protected]
http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk