The-Fixer has quit [Read error: 60 (Operation timed out)]
The--Fixer is now known as The-Fixer
gim has quit []
Kinners has joined #ocaml
Kinners has left #ocaml []
infinitesimo has joined #ocaml
Nutssh has quit ["Client exiting"]
infinitesimo has quit ["F(YF) = YF"]
er has joined #ocaml
tinfoil has joined #ocaml
er has quit ["Client exiting"]
mlh has quit ["ni!"]
er has joined #ocaml
er is now known as Nutssh
phj has joined #ocaml
SpookRijder has joined #ocaml
Nutssh has quit ["Client exiting"]
whiskas has joined #ocaml
DomC has joined #ocaml
stupid|me has joined #ocaml
whiskas has quit [Read error: 54 (Connection reset by peer)]
stupid|me has quit [Client Quit]
whiskas has joined #ocaml
White_FrosT has joined #ocaml
Lemmih has quit [Remote closed the connection]
Kinners has joined #ocaml
SpookRijder has quit ["ni!"]
gim has joined #ocaml
Banana has joined #ocaml
rox has quit [Read error: 110 (Connection timed out)]
Banana has quit [Read error: 60 (Operation timed out)]
Demitar has quit [orwell.freenode.net irc.freenode.net]
whiskas has quit [orwell.freenode.net irc.freenode.net]
cjohnson has quit [orwell.freenode.net irc.freenode.net]
whee has quit [orwell.freenode.net irc.freenode.net]
slashvar[lri] has quit [orwell.freenode.net irc.freenode.net]
phj has quit [orwell.freenode.net irc.freenode.net]
drWorm has quit [orwell.freenode.net irc.freenode.net]
Hadaka has quit [orwell.freenode.net irc.freenode.net]
mellum has quit [orwell.freenode.net irc.freenode.net]
ejt has quit [orwell.freenode.net irc.freenode.net]
det has quit [orwell.freenode.net irc.freenode.net]
cmeme has quit [orwell.freenode.net irc.freenode.net]
Riastradh has quit [orwell.freenode.net irc.freenode.net]
mattam has quit [orwell.freenode.net irc.freenode.net]
wazze has quit [orwell.freenode.net irc.freenode.net]
Smerdyakov has quit [orwell.freenode.net irc.freenode.net]
smkl has quit [orwell.freenode.net irc.freenode.net]
gim has quit [orwell.freenode.net irc.freenode.net]
Godeke has quit [orwell.freenode.net irc.freenode.net]
White_FrosT has quit [orwell.freenode.net irc.freenode.net]
Bakka has quit [orwell.freenode.net irc.freenode.net]
pattern has quit [orwell.freenode.net irc.freenode.net]
Kinners has quit [orwell.freenode.net irc.freenode.net]
DomC has quit [orwell.freenode.net irc.freenode.net]
The-Fixer has quit [orwell.freenode.net irc.freenode.net]
magnus-- has quit [orwell.freenode.net irc.freenode.net]
Defcon7 has quit [orwell.freenode.net irc.freenode.net]
andrewb has quit [orwell.freenode.net irc.freenode.net]
Hipo has quit [orwell.freenode.net irc.freenode.net]
hf_ has quit [orwell.freenode.net irc.freenode.net]
tinfoil has quit [orwell.freenode.net irc.freenode.net]
lam has quit [orwell.freenode.net irc.freenode.net]
yella has quit [orwell.freenode.net irc.freenode.net]
slashvar[lri] has joined #ocaml
whee has joined #ocaml
cjohnson has joined #ocaml
whiskas has joined #ocaml
Demitar has joined #ocaml
hf_ has joined #ocaml
Hipo has joined #ocaml
smkl has joined #ocaml
andrewb has joined #ocaml
pattern has joined #ocaml
Godeke has joined #ocaml
yella has joined #ocaml
lam has joined #ocaml
Defcon7 has joined #ocaml
Bakka has joined #ocaml
Smerdyakov has joined #ocaml
magnus-- has joined #ocaml
The-Fixer has joined #ocaml
tinfoil has joined #ocaml
DomC has joined #ocaml
White_FrosT has joined #ocaml
Kinners has joined #ocaml
gim has joined #ocaml
mattam has joined #ocaml
wazze has joined #ocaml
cmeme has joined #ocaml
det has joined #ocaml
Riastradh has joined #ocaml
phj has joined #ocaml
drWorm has joined #ocaml
ejt has joined #ocaml
Hadaka has joined #ocaml
mellum has joined #ocaml
rox has joined #ocaml
<phj>
how to use when keyword ?
<Kinners>
match foo with n when <expr> -> whatever
<phj>
If I use "match foo with | x -> y",is it the same ?
<phj>
| is optional
<Kinners>
you can use more complex tests with a when clause
<Kinners>
do you mean is the syntax the same or something else?
<phj>
the first one
<Kinners>
it's just an optional bit of syntax after the pattern (ie. after the n or x in the examples)
<phj>
Would you mind telling a complex example of how to using when keyword?
<phj>
I'm newbie to ocaml.
<andrewb>
There's several uses of "when" in the standard library ... eg scan_decimal_digits in ocaml-3.07/stdlib/scanf.ml. It supplies an extra expression which must be true for the pattern to match.
Kinners has left #ocaml []
Banana[Home] has joined #ocaml
White_FrosT has left #ocaml []
wazze has quit ["--- reality is that which, when you stop believing in it, doesn't go away ---"]
whiskas has quit ["Pa / Bye."]
Lemmih has joined #ocaml
det has quit [Read error: 104 (Connection reset by peer)]
DomC_ has joined #ocaml
DomC has quit [Read error: 110 (Connection timed out)]
av_ has joined #ocaml
av_ has left #ocaml []
av_ has joined #ocaml
DomC_ has quit ["ChatZilla 0.9.59p [Mozilla rv:1.6/20040206]"]
<av_>
hello everyone, this is my first time in IRC. I have a question about compiling Ocaml and C code in Windows using MinGW32 ....
<Smerdyakov>
Then ask your question. :)
<av_>
thanks, ok, I am trying to compile an application that includes some libraries writen in C. The problem is in the last linking step, using ocamlopt.opt, an error message appears like this:
<av_>
gcc: @<path to the temp directory>\camlresp<some numbers>: Invalid argument
<av_>
I think the problem is that the backslash , slash stuff is something MiGW didn't like, but I am not sure ... I haven't found any problem like this in the web.
phj has quit [Read error: 60 (Operation timed out)]
<av_>
in the path to the temp directory uses the following form D:/Docs~1/.... and in the final temp file appears with '\' ... could that be the reason? everythink else during the make process runs nicely
<Smerdyakov>
I don't know. I've never done what you're doing.
<av_>
I am running W2K, Ocaml 3.07, with MinGW toolchain, gcc 3.2, and I have cygwin installed also, although the error appears when using cygwin, the windows console or Minsys
<Smerdyakov>
Ew. Why do you use Win2K?
<av_>
because some users run windows ... the application is run in a linux cluster most of the time, but not always ..
<av_>
and I couldn't manage in a reasonable amount of time to get a cross compiler for ocaml running. And no information on the web neither.
<av_>
well, only some messages stating that other people couldn't neither
<av_>
I think I will try modifying the stdlib/filename.ml file in the Ocaml source code to check if that's my problem ...
<Smerdyakov>
Hm. It's too bad that you have users who run Windows. :)
ptolomy has joined #ocaml
<av_>
well, no matter what you and I think ... most of the people does ... thanks Smerdyakov for your interest! I will probably ask in the ocaml mail list about this issue.
<av_>
and it IS a pain. I never realized how rustie I am in Windows stuff ... ;-)
<Smerdyakov>
There's also a #cygwin here.
<av_>
I might try that also then ... I'll see if it works with the modifications I plan.
cjohnson has quit ["Drawn beyond the lines of reason"]
<magnus-->
Hi, I am new to ocaml and I'm trying to learn it by writing a lisp parser. Suffice to say I've only got about 10 lines so far. However I'm wondering what this error message means:
<magnus-->
Error while linking lexer.cmo: Reference to undefined global `Unix'
<Smerdyakov>
Are you using ocamlopt, ocamlc, or ocaml?
<Smerdyakov>
(the name of the program you run)
<Smerdyakov>
Looks like ocamlc.
<Smerdyakov>
Am I right?
<magnus-->
ocamlc
<magnus-->
yes
<magnus-->
(sorry about the delay)
Bakka has quit ["changing servers"]
<smkl>
you need ocamlc unix.cma ...
<magnus-->
hmm, okay
<magnus-->
thanks:) it works
<av_>
well well I am back and still can't solve my stuff ...
<av_>
I am trying to compile Ocaml 3.07 using the mingw toolchain in Win2K. and I am getting stuck with a compile time error now, when compiling Ocaml.
<av_>
I changed some details in the Ocaml source code to test a problem I am getting when compiling under W2K with C code and mingw, but I can't even compile ocaml under windows! anybody have done this before?
wazze has joined #ocaml
lus|wazze has joined #ocaml
Kinners has joined #ocaml
jesse is now known as jesse_
jesse_ is now known as jesse
wazze has quit [Read error: 60 (Operation timed out)]
Nutssh has joined #ocaml
mattam_ has joined #ocaml
mattam has quit [Read error: 60 (Operation timed out)]