dan2 changed the topic of #ocaml to: OCaml 3.08.2 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/ | 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/
ne1 has quit ["Few people understand understanding."]
monochrom has joined #ocaml
budjet has quit [Remote closed the connection]
whee has joined #ocaml
smimou has quit ["?"]
whee has quit []
<dan2> Demitar: with ocamldep it automatically gets dependencies like libs too?
maml has quit [Read error: 60 (Operation timed out)]
<dan2> mflux: were you the one who said you used configure/Make for ocaml projects?
bzzbzz has quit ["leaving"]
zzorn has quit ["They are coming to take me away ha ha"]
mattam has quit [Read error: 110 (Connection timed out)]
zno has left #ocaml []
gim has quit ["zzz++"]
smkl has quit [Read error: 238 (Connection timed out)]
hangman4 has quit [Connection timed out]
hangman4 has joined #ocaml
smkl has joined #ocaml
MikeJS has quit ["Leaving"]
shawn has joined #ocaml
vezenchio has joined #ocaml
bpalmer has joined #ocaml
monochrom has quit ["Few people understand "understanding"."]
wam has quit ["Abandonando"]
wam has joined #ocaml
bpalmer has quit ["ChatZilla 0.9.61 [Mozilla rv:1.7.1/20040707]"]
<mflux> no.
mrsolo_ has quit [Read error: 60 (Operation timed out)]
mrsolo_ has joined #ocaml
shawn_ has joined #ocaml
shawn has quit [Read error: 60 (Operation timed out)]
maeglin has joined #ocaml
smkl has quit [Read error: 238 (Connection timed out)]
zzorn has joined #ocaml
zzorn is now known as zzorn_away
mlh has quit [Client Quit]
Submarine has joined #ocaml
maeglin has left #ocaml []
Herrchen has joined #ocaml
smkl has joined #ocaml
Herrchen has quit ["bye"]
hangman4 has quit [Connection timed out]
hangman4 has joined #ocaml
smkl has quit [Read error: 238 (Connection timed out)]
shawn_ is now known as shawn
pango has quit [Remote closed the connection]
Herrchen has joined #ocaml
pango has joined #ocaml
smimou has joined #ocaml
smkl has joined #ocaml
hangman4 has quit [Read error: 110 (Connection timed out)]
slashvar has joined #ocaml
slashvar is now known as slashvar[lri]
pango has quit [Remote closed the connection]
smkl has quit [Read error: 238 (Connection timed out)]
solarwind has quit [Remote closed the connection]
solarwind has joined #ocaml
hangman4 has joined #ocaml
smkl has joined #ocaml
pango has joined #ocaml
heimdall_ has joined #ocaml
<heimdall_> hi
<heimdall_> can someone help me to interface ocaml with C ?
<heimdall_> I get a weird error
<heimdall_> when trying to link the output of ocamlc -ouput-obj
<heimdall_> /tmp/ccQVEyQG.o(.text+0x0): In function `main':
<heimdall_> /home/heimdall/info/idb/work/openGl/main.c:17: multiple definition of `main'
<heimdall_> /usr/lib/ocaml/libasmrun.a(main.o)(.text+0x0): first defined here
<heimdall_> /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/../../../../i386-pc-linux-gnu/bin/ld: Warning: size of symbol `main' changed from 38 in /usr/lib/ocaml/libasmrun.a(main.o) to 687 in /tmp/ccQVEyQG.o
<heimdall_> no one ?
CosmicRay has joined #ocaml
smkl has quit [Read error: 238 (Connection timed out)]
<mflux> I know nothing about that subject, but maybe you're trying to link a c-object file that already contains 'main'
<heimdall_> well, yes
<heimdall_> I just want to include some OCaml functions in my C code
<heimdall_> and there already is a main in my C code, but I don't see where gcc sees any *other* main
<mflux> it sees it in libasmrun.a ;)
maml has joined #ocaml
<mflux> maybe you can bootstrap your program by calling it from the ocaml-part
<heimdall_> hum
<heimdall_> I'm trying to build a library with the caml things
<heimdall_> like in the manual
<heimdall_> if it still doesn't work, I'll try what you propose
<heimdall_> RHAAAAAAA
<heimdall_> how comes !??
* heimdall_ too stupid
<heimdall_> I simply have two files with name main.o
<heimdall_> ..........................
bzzbzz has joined #ocaml
heimdall_ has quit ["Leaving"]
smkl has joined #ocaml
<vincenz> you want to compile not link
<vincenz> and then you get a .o file
<vincenz> and then you link that with your c code
Submarine has quit ["Leaving"]
Submarine has joined #ocaml
Submarine has quit [Client Quit]
Submarine has joined #ocaml
Quazion has joined #ocaml
Quazion has left #ocaml []
cjohnson has joined #ocaml
mrvn_ has joined #ocaml
mrvn has quit [Read error: 60 (Operation timed out)]
Submarine has quit ["Leaving"]
Submarine has joined #ocaml
Godeke has quit [Remote closed the connection]
cjohnson has quit ["The main attraction: distraction"]
pango has quit [Nick collision from services.]
pango has joined #ocaml
Godeke has joined #ocaml
cjohnson has joined #ocaml
zzorn_away is now known as zzorn
karryall has joined #ocaml
smkl has quit [Read error: 238 (Connection timed out)]
cjohnson has quit ["The main attraction: distraction"]
<vincenz> anyone know a nice socket framework?
_JusSx_ has joined #ocaml
<_JusSx_> what heppened wuruz?
Herrchen has quit ["n8"]
vezenchio has quit ["haibane · renmei"]
smimou has quit [Read error: 104 (Connection reset by peer)]
smimou has joined #ocaml
_JusSx_ has left #ocaml []
smkl has joined #ocaml
<vincenz> Can you have the type
<vincenz> [> ]
<vincenz>
<vincenz> ype ('connection) callback' =
<vincenz> ([> `Connect | `Text of string] -> 'connection -> unit)
<vincenz> aFile "connection.mli", line 8, characters 3-33:
<vincenz> Unbound type parameter [..]
<karryall> yes but there's a type variable
<vincenz> ?
<karryall> yes you can have the type [> ]
<vincenz> so how come it complains?
cryptilox has joined #ocaml
<Smerdyakov> Why are you using polymorphic variants?
hangman4 has quit [Connection timed out]
cryptilox has quit [Read error: 110 (Connection timed out)]
<vincenz> open system
<vincenz> basically I have connections
<vincenz> and they have callbacks
<vincenz> most connections will pass a Text string to the callback
<vincenz> but listen connections will pass a "Accept sock" to the callback
<vincenz> possibly in the future; connections might pass other objects to their callback
CosmicRay has quit ["Client exiting"]
<vincenz> so I want the callbacks to take an opentype as first type
<vincenz> hmm
<vincenz> odd
<vincenz> Unix.accept returns Unix.file_descr*Unix.sockaddr
<vincenz> so I do
<vincenz> Accept of Unix.file_descr*Unix.sockaddr
<vincenz> then I do Accept (Unix.accept ...)
<vincenz> and it complains that Accept expects two params
<vincenz> if I put parentheses around the Unix.file_descr*Unix.sockaddr in the definition of Accept it works fine
<vincenz> so
<vincenz> type a = Accept of (Unix.file_descr * Unix.sockaddr) is not the same as type a = Accept of Unix.file_descr * Unix.sockaddr
<karryall> indeed, it is not
<vincenz> odd
mlh has joined #ocaml
<Riastradh> Silly idiosynchrasy of OCaml.
<vincenz> how do you predefine a class type?
* vincenz pastes
<vincenz> class type A = object ...end and type B = object .. end
<vincenz> this is in the ,li
<vincenz> mli
<vincenz> in the ml
<vincenz> class A = object .. end
<vincenz> class type B = object .. end
<vincenz> but this is not possible as A uses type B
<vincenz> in the mli is fine
<vincenz> I use the and
<vincenz> but in the ml this is not possible