Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Custom linking with MacOSX frameworks?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-10-03 (15:03)
From: Julien Blond <julien.blond@g...>
Subject: Re: [Caml-list] Custom linking with MacOSX frameworks?
> I do that for GlSurf and I use Glut !

Cool! I took a look at your Makefile and I found the answer to my  
Actually I didn't think to pass the -framework <name> with the double  
quotes to the C compiler.

So, if this compilation issue does interest somebody, here is the  
"trick". To "custom link" with MacOSX frameworks, the compilation  
command must looks like :

ocamlc -custom <files needed> -o <executable name> -cclib -lobjc - 
ccopt "-framework <name>" ...

Thanks to Cristophe! :-)

> The window has an acqua look, but no way to customize the menubar ...

Well, I don't use Glut for I prefer the more "customizable" SDL  
framework. It may work better with it?

-- Julien Blond
LIP6/Bertin Technologies