List Info

Thread: "ocaml_beginners"::[] statically link lablgtk




"ocaml_beginners"::[] statically link lablgtk
user name
2006-11-24 13:06:23


Hi List,

somehow I'm not able to statically link a labgtk application ... ?

To make things easy I'll use the simple example from http://www.ocaml-tutorial.org/introduction_to_gtk

$ ocamlopt -ccopt -static -I +lablgtk2 lablgtk.cmxa gtkInit.cmx simple.ml
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgtk-x11-2.0
collect2: ld returned 1 exit status
Error during linking

I already tried using '-cclib /usr/lib/libgtk-x11-2.0.so' without success.

Any help is appreciated. Thanks !

--
Ingo Bormuth, voicebox & fax: +49-(0)-12125-10226517
public key 86326EC9, http://ibormuth.efil.de/contact

__._,_.___
.

__,_._,___
"ocaml_beginners"::[] statically link lablgtk
user name
2006-11-24 17:43:04

On Fri, Nov 24, 2006 at 02:06:23PM +0100, Ingo Bormuth wrote:
> somehow I'm not able to statically link a labgtk application ... ?
>
> To make things easy I'll use the simple example from http://www.ocaml-tutorial.org/introduction_to_gtk
>
> $ ocamlopt -ccopt -static -I +lablgtk2 lablgtk.cmxa gtkInit.cmx simple.ml
> /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgtk-x11-2.0
> collect2: ld returned 1 exit status
> Error during linking
>
> I already tried using '-cclib /usr/lib/libgtk-x11-2.0.so' without success.

I don't think this is very simple. Have a look at:

http://camltest.inria.fr/pub/ml-archives/caml-list/2003/07/032529a0afdc8c60764930a25f7d247f.en.html

Rich.

--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Internet Marketing and AdWords courses - http://merjis.com/courses - NEW!
Merjis blog - http://blog.merjis.com - NEW!

__._,_.___
.

__,_._,___
"ocaml_beginners"::[] statically link lablgtk
user name
2006-11-24 17:45:34

And:

http://www.math.nagoya-u.ac.jp/~garrigue/soft/olabl/lablgtk-list/old/897.txt

Rich.

--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Internet Marketing and AdWords courses - http://merjis.com/courses - NEW!
Merjis blog - http://blog.merjis.com - NEW!

__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )