smimou changed the topic of #ocaml to: OCaml 3.08.3 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
smimou has quit ["?"]
bzzbzz has joined #ocaml
gim has joined #ocaml
shrimpx has quit [Read error: 110 (Connection timed out)]
batdog|gone is now known as batdog
ulfdoz has joined #ocaml
Smerdyakov has joined #ocaml
ulfdoz_ has quit [Read error: 110 (Connection timed out)]
batdog is now known as batdog|gone
Herrchen_ has joined #ocaml
Herrchen has quit [Read error: 110 (Connection timed out)]
Smerdyakov has quit []
vincenz has quit [Read error: 104 (Connection reset by peer)]
vincenz has joined #ocaml
vezenchio has joined #ocaml
mw_ has joined #ocaml
{|mono|} has quit ["me!"]
mw has quit [Read error: 110 (Connection timed out)]
joeymonster has joined #ocaml
cmeme has quit [Connection timed out]
cmeme has joined #ocaml
joeytwiddle has quit [Connection timed out]
Nutssh has joined #ocaml
Snark has joined #ocaml
vezenchio has quit [kornbluth.freenode.net irc.freenode.net]
vincenz has quit [kornbluth.freenode.net irc.freenode.net]
pattern_ has quit [kornbluth.freenode.net irc.freenode.net]
mfurr_away has quit [kornbluth.freenode.net irc.freenode.net]
TaXules has quit [kornbluth.freenode.net irc.freenode.net]
Snark has quit [kornbluth.freenode.net irc.freenode.net]
gim has quit [kornbluth.freenode.net irc.freenode.net]
bzzbzz has quit [kornbluth.freenode.net irc.freenode.net]
whee has quit [kornbluth.freenode.net irc.freenode.net]
dan2_ has quit [kornbluth.freenode.net irc.freenode.net]
mauke has quit [kornbluth.freenode.net irc.freenode.net]
batdog|gone has quit [kornbluth.freenode.net irc.freenode.net]
r_qvisito has quit [kornbluth.freenode.net irc.freenode.net]
ffdd has quit [kornbluth.freenode.net irc.freenode.net]
Mike_L has quit [kornbluth.freenode.net irc.freenode.net]
rossberg has quit [kornbluth.freenode.net irc.freenode.net]
vezenchio has joined #ocaml
vincenz has joined #ocaml
pattern_ has joined #ocaml
mfurr_away has joined #ocaml
TaXules has joined #ocaml
Snark has joined #ocaml
gim has joined #ocaml
bzzbzz has joined #ocaml
whee has joined #ocaml
dan2_ has joined #ocaml
mauke has joined #ocaml
batdog|gone has joined #ocaml
r_qvisito has joined #ocaml
Mike_L has joined #ocaml
rossberg has joined #ocaml
ffdd has joined #ocaml
Nutssh has quit ["Client exiting"]
mauke has quit [Remote closed the connection]
_shawn has joined #ocaml
Smerdyakov has joined #ocaml
Smerdyakov has quit ["sleep"]
ita has joined #ocaml
<ita> hi all
<Mike_L> hello
<ita> i'm looking for examples of launching programs from caml and controlling the input/output/error channels
<ita> and also an xml sax parser
<ulfdoz> re
Submarine has joined #ocaml
memic2 has joined #ocaml
Skal has joined #ocaml
memic2 has quit ["[BX] Do you... BitchX?"]
mic_ has joined #ocaml
<ita> i also need a md5sum implementation
<ita> oh cool this one is already there - Digest
<pango_> ita: check cryptokit
<ita> ok - i only needed md5 anyway (check which files have changed)
<ita> now i need a very simple sax parser
<pango_> I suppose you checked caml humps ?
<ita> yes
<ita> i've only found huge libraries for dom and such - not suitable in my project as i'll have to distribute the files as well
smimou has joined #ocaml
Submarine has quit ["Leaving"]
mic_ has quit [Read error: 110 (Connection timed out)]
pattern_ has quit [Read error: 110 (Connection timed out)]
mic_ has joined #ocaml
pattern_ has joined #ocaml
mauke has joined #ocaml
Banana has quit [Remote closed the connection]
Banana has joined #ocaml
Banana has quit [Client Quit]
Banana has joined #ocaml
__DL__ has joined #ocaml
mauke has quit [kornbluth.freenode.net irc.freenode.net]
smimou has quit [kornbluth.freenode.net irc.freenode.net]
cmeme has quit [kornbluth.freenode.net irc.freenode.net]
mw_ has quit [kornbluth.freenode.net irc.freenode.net]
ulfdoz has quit [kornbluth.freenode.net irc.freenode.net]
skylan has quit [kornbluth.freenode.net irc.freenode.net]
mellum has quit [kornbluth.freenode.net irc.freenode.net]
mattam has quit [kornbluth.freenode.net irc.freenode.net]
mauke has joined #ocaml
smimou has joined #ocaml
cmeme has joined #ocaml
mw_ has joined #ocaml
ulfdoz has joined #ocaml
skylan has joined #ocaml
mattam has joined #ocaml
mellum has joined #ocaml
pango__ has joined #ocaml
pango_ has quit [Read error: 110 (Connection timed out)]
arcticd has joined #ocaml
Smerdyakov has joined #ocaml
arcticd has quit [Client Quit]
kjs3 has joined #ocaml
ita is now known as ita|out
ita|out has quit [Remote closed the connection]
mic_ has quit [Read error: 110 (Connection timed out)]
Demitar has joined #ocaml
vezenchio has quit ["\o/ in mochintin namocniuh \o/"]
Snark has quit ["Leaving"]
Smerdyakov has quit []
Submarine has joined #ocaml
ramen has joined #ocaml
__DL__ has quit ["Bye Bye"]
__DL__ has joined #ocaml
TeXitoi has joined #ocaml
ramen has quit ["[BX] Mike Tyson says BitchX BITES! Do you HEAR what I'm saying?!"]
mfurr_away is now known as mfurr
Peter_Mc has joined #ocaml
* Peter_Mc strolls in and asks if anybody is reading what's happening at the moment.
* Peter_Mc decides to carry on regardles....
<Peter_Mc> I'm an ocaml newbie. I've just installed the debian ocaml-core and ocaml-libs metapackages.
<Peter_Mc> Then I tried the ocaml tutorial at www.ocaml-tutorial.org
<Peter_Mc> Everything worked fine until I tried to compile a simple, gtk-based "Notepad" clone.
<Peter_Mc> I get the following error message:
<Peter_Mc> ~/code/ocaml/ ocamlc gMain.cma ocamltest1.ml -o ocamltest1.cmo
<Peter_Mc> File "ocamltest1.ml", line 7, characters 0-10: Unbound module GMain
<smimou> do you have lablgtk2 installed ?
<Peter_Mc> I had a look, and found that I did not have an gMain.cma file anywhere. I have gMain.cmx and .ml, but no .cma.
<pango__> liblablgtk-ocaml-dev or liblablgtk2-ocaml-dev ?
<Peter_Mc> Yes, I do have lablgtk2 installed.
<Peter_Mc> Yes. I have all of those. They are all brought in by ocaml-core and ocaml-libs.
<smimou> it should be in lablgtk.cma or smth like that
<mfurr> Peter_Mc: you need to add "-I +lablgtk2"
<Peter_Mc> What does that do?
<mfurr> add the directory lablgtk2 to your module search path (the + means above the system module directory)
<smimou> and it should me lablgtk.cma not gMain.cma
<smimou> % ocamlobjinfo lablgtk.cma|grep GMain
<smimou> Unit name: GMain
<smimou> e9e11e5896c0ad5c2c6931468cc86f73 GMain
<Peter_Mc> Ah yes! Thank you. It all works! (Well, to be exact, I get a completely different set of compiler errors, but that's good enough for me.)
<smimou> good luck for the rest
<Peter_Mc> Why isn't this mentioned on the ocaml tutorial? It gives the code, but makes no mention of what I need to do to compile it.
<Peter_Mc> Anyway, thank you, smimou & mfurr.
<Peter_Mc> Is the tutorial still a work in progress?
Submarine has quit ["Leaving"]
<smimou> yes it is
<Peter_Mc> In that case ... maybe you could shed some light on the error messages that I'm getting.
<Peter_Mc> The compiler's complaining about something in the first few lines of code, and I'm sure that I've correctly transcribed it from the code given on the web-page.
<smimou> go on, we'll see
<Peter_Mc> open StdLabels open GMain let file_dialog ~title ~callback ?filename () = let sel = GWindow.file_selection ~title ~modal:true ?filename () in sel#cancel_button#connect#clicked ~callback:sel#destroy; sel#ok_button#connect#clicked ~callback:do_ok;
<Peter_Mc> ...
<Peter_Mc> compiler complains that:
<Peter_Mc> File "ocamltest1.ml", line 20, characters 2-57: Warning: this expression should have type unit. File "ocamltest1.ml", line 21, characters 42-47: Unbound value do_ok
<Peter_Mc> Do you see any obvious reason why these messages should be cropping up?
<mfurr> well for starters, its looking for a function or value named "do_ok" and can't find it... do you have a function called that?
<Peter_Mc> No. I assumed that do_ok was being imported from one of the libraries.
<Peter_Mc> Oh... hang on.
<Peter_Mc> I've just done something really dumb.
<Peter_Mc> lol
<Peter_Mc> "In this section we're going to show some real code fragments from the lablgtk 1.2 library...."
<Peter_Mc> It's just some exhibited code fragments.
* Peter_Mc *blushes*
<Peter_Mc> It was never meant to be compiled and run.
<smimou> heh
ramen has joined #ocaml
Smerdyakov has joined #ocaml
<Peter_Mc> So much for "RTFM". Anyway, thanks for your help.
<Peter_Mc> I'll come back later when I've more stupid questions to ask.
Peter_Mc has quit ["Started wasting time elsewhere"]
<ulfdoz> bye
mfurr has quit ["Xorg, here I come"]
<ramen> <rotty:#scheme> (unless R6RS modules == scheme48 modules)
<ramen> <Enveigler:#haskell> And I'm not really sure what I mean by thread support, but you mentioned -thread
ramen has quit ["[BX] Silly wabbit, BitchX is for kids!"]
Skal has quit ["Client exiting"]
mlh_ has joined #ocaml