<rrolles>
I'm having a weird issue building native executables on OCaml 3.12 MSVC built on Windows, if they wind up linking against Microsoft's .LIB files
<rrolles>
if I pass the -verbose flag to the compiler, everything works correctly
<rrolles>
if I don't, it complains that it can't find a .lib file (ws2_32.lib specifically)
<rrolles>
notice the only difference between the command-line invocations is the -verbose flag
<rrolles>
without the verbose flag, it doesn't find the library
<rrolles>
with the verbose flag, it builds and I can execute it successfully
<rrolles>
aha
<rrolles>
ocamlgraph's makefile defined a "LIB" variable, shadowing a very important environment variable containing a path to my MS SDK library directory
<rrolles>
that certainly was annoying
q66 has quit [Quit: Leaving]
thomasga has quit [Quit: Leaving.]
rrolles has quit [Quit: Leaving]
dapz has joined #ocaml
penglingbo has joined #ocaml
ygrek has joined #ocaml
Derander has quit [Ping timeout: 240 seconds]
Derander has joined #ocaml
ebzzry has quit [Remote host closed the connection]
ebzzry has joined #ocaml
manizzle has joined #ocaml
jpdeplaix has quit [Ping timeout: 252 seconds]
jpdeplaix has joined #ocaml
dant3 has quit [Ping timeout: 240 seconds]
mcclurmc has quit [Remote host closed the connection]
jao has quit [Ping timeout: 244 seconds]
dant3 has joined #ocaml
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mcclurmc has joined #ocaml
mcclurmc_ has joined #ocaml
mcclurmc has quit [Read error: Connection reset by peer]
rgrinberg has quit [Quit: Leaving.]
rgrinberg has joined #ocaml
mcclurmc_ has quit [Remote host closed the connection]
axiles has joined #ocaml
yacks has quit [Ping timeout: 264 seconds]
dapz has joined #ocaml
yacks has joined #ocaml
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgrinberg has quit [Quit: Leaving.]
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: Leaving.]
rgrinberg has joined #ocaml
ygrek has quit [Ping timeout: 264 seconds]
cdidd_ has joined #ocaml
cdidd has quit [Ping timeout: 240 seconds]
arj has quit [Quit: Leaving.]
saarin has quit [Ping timeout: 264 seconds]
acieroid has quit [Read error: Connection reset by peer]
acieroid has joined #ocaml
saarin has joined #ocaml
ebzzry has quit [Remote host closed the connection]
ygrek has joined #ocaml
BitPuffin has quit [Ping timeout: 244 seconds]
sgnb has joined #ocaml
ygrek_ has joined #ocaml
AltGr has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
NoNNaN has quit [Remote host closed the connection]
NoNNaN has joined #ocaml
sgnb` has joined #ocaml
sgnb has quit [Ping timeout: 264 seconds]
Oejet has joined #ocaml
cago has joined #ocaml
alpounet has joined #ocaml
<companion_cube>
mrvn: tests embedded in the source code should be done with a ppx, and you would compile with and without the tests imho
sagotch has joined #ocaml
<companion_cube>
weykent: take a look at qtest
strobegen1 has joined #ocaml
strobegen has quit [Read error: Connection reset by peer]
strobegen1 has quit [Client Quit]
strobegen has joined #ocaml
BitPuffin has joined #ocaml
Simn has joined #ocaml
ygrek_ has quit [Ping timeout: 255 seconds]
alpounet has quit [Remote host closed the connection]
alpounet has joined #ocaml
maattdd has joined #ocaml
lordkryss has joined #ocaml
jludlam has joined #ocaml
baz_ is now known as baz
baz is now known as Guest79363
Guest79363 is now known as baz_
baz_ has quit [Changing host]
baz_ has joined #ocaml
baz_ has quit [Quit: leaving]
ebzzry has joined #ocaml
jludlam is now known as jonludlam
baz_ has joined #ocaml
ygrek_ has joined #ocaml
thomasga has joined #ocaml
thomasga has quit [Client Quit]
toolslive has joined #ocaml
thomasga has joined #ocaml
alpounet has quit [Remote host closed the connection]
alpounet has joined #ocaml
Kakadu has joined #ocaml
alpounet has quit [Ping timeout: 255 seconds]
<toolslive>
@BitPuffin they are, but as a syntax extension...
<def`>
lostman: graphics is disabled if X11 headers or libraries can't be found
<etairi>
Oejet: This seems nice. Is it the complete grammar of OCaml?
<def`>
lostman: I don't know much about nixos, but I know that it plays a lot with PATHs, make sure everything was found (you can check the log of opam)
thomasga has quit [Quit: Leaving.]
<Oejet>
etairi: I don't know.
<etairi>
Oejet: One more question. Why are some lines highlighted in yellow?
<flux>
they have been changed since previous release
manizzle has quit [Ping timeout: 255 seconds]
thomasga has joined #ocaml
jludlam has joined #ocaml
hhugo has joined #ocaml
Nahra has joined #ocaml
jonludlam has quit [Read error: Connection reset by peer]
mort___ has joined #ocaml
rand000 has joined #ocaml
strobegen1 has quit [Ping timeout: 264 seconds]
strobegen has joined #ocaml
<BitPuffin>
woot setting up ocaml on windows is a pain
oriba has joined #ocaml
hhugo has quit [Quit: Leaving.]
<Kakadu>
windows is pain
maattdd_ has joined #ocaml
<BitPuffin>
it is
fraggle_ has quit [Remote host closed the connection]
fraggle_ has joined #ocaml
<adrien>
ocaml on windows is fine
<fraggle_>
adrien, ping
* adrien
hides
<adrien>
:)
<fraggle_>
adrien, PM :p
thomasga has quit [Quit: Leaving.]
srax has joined #ocaml
studybot_ has quit [Remote host closed the connection]
<gasche>
if you wish to contribute information/binaries/patches to ease the life of Windows users, feel free
<adrien_oww>
you need cygwin but it's trivial
<baz_>
hi, got a BatStd.result question
<baz_>
I got a function that returns a BatStd.result
jludlam is now known as jonludlam
mk270_ is now known as mk270
<baz_>
and the result of BatStd.Ok is wrappend in another BatStd.Ok as an option
thomasga has quit [Quit: Leaving.]
<baz_>
the BatStd.Bad needs to be passed along
<baz_>
but now the ('a, 'b) result type of the new BatStd.Ok no longer matches the BatStd.Bad type
<baz_>
since 'a is now 'a option
<baz_>
how can I change the 'a of BatStd.Bad
<baz_>
nevermind, I missed something :P
ontologiae has quit [Ping timeout: 240 seconds]
hhugo has joined #ocaml
<BitPuffin>
adrien_oww: weird, the instructions want you to run vcvars64 but I only have vcvars32.bat
darkf has quit [Quit: Leaving]
shinnya has joined #ocaml
oriba has quit [Quit: oriba]
ustunozgur has joined #ocaml
ontologiae has joined #ocaml
ustunozgur has quit [Client Quit]
ustunozgur has joined #ocaml
<orbitz>
Is is too much to want a module type to be parameterized on another type?
divyanshu has quit [Quit: Computer has gone to sleep.]
penglingbo has joined #ocaml
rand000 has quit [Ping timeout: 255 seconds]
JokerDoom has joined #ocaml
bavarious has joined #ocaml
<ggole>
orbitz: do you want polymorphic sets/maps by any chance?
* rwmjones
wonders if there is a way to use Map.Make(String) to define a top-level module in a new StringMap.ml file
<rwmjones>
instead of ending up with a module called StringMap.StringMap
<ggole>
include Map.Make(String)
<rwmjones>
ah .. good one
<rwmjones>
that's an ocaml 4 thing isn't it?
* rwmjones
checks ..
<orbitz>
ggole: no, in this case I want to define an interface to a key-value store. and I want the object stored to be paramaterized as well.
<ggole>
orbitz: yeah, that's what I meant
<orbitz>
oh well
<ggole>
A 'a t Set.t instead of the usual t Set.t
<orbitz>
now that i think about it
<orbitz>
yes what ou asked isrigh
<ggole>
It's a common issue people have with Set and Map
<orbitz>
i require some operations on the object though
<rwmjones>
that works on at least 3.10; thanks ggole
<orbitz>
what i'm trying now is module type FOO = sig module Thing : sig val create ... end val something_with_thing : Thing.t ... end
<orbitz>
does taht sound reasonable?
<toolslive>
@orbitz: module type X = sig type 'a t end
<mrvn>
orbitz: are objects an option?
<ggole>
rwmjones: oh, if you need the corresponding sig element, it's something like include Map.S with type key = string
<rwmjones>
yeah I'll let the implicit *.mli do it's thing
<ggole>
The module only exists to expose StringMap, I take it
<rwmjones>
yup, and add a few useful functions too
<ggole>
Right
<mrvn>
toolslive: you can't use an 'a t in a functor expecting a t
sagotch has quit [Remote host closed the connection]
<toolslive>
I probably misunderstood the question....
ygrek_ has joined #ocaml
<orbitz>
toolslive, mrvn : in my case the underlying implemenation will be manipulating the Thing
<mrvn>
you can't manipulate a 'a though
<orbitz>
mrvn: I know, my example doesn't have an 'a in it
<orbitz>
I'll think about it awhiel. I'm probably just not thirnking right about it
hhugo has quit [Quit: Leaving.]
mcclurmc has joined #ocaml
divyanshu has joined #ocaml
olauzon has joined #ocaml
SethTisue has joined #ocaml
WraithM has quit [Ping timeout: 245 seconds]
<toolslive>
sometimes it's just easier to use object orientation than to try to fit it into modules. (this may not be the answer you want to hear)
cdidd__ has joined #ocaml
cdidd_ has quit [Ping timeout: 240 seconds]
racycle has joined #ocaml
<orbitz>
In this case I don't think objects help me. I don't need sub classes, just another layer of dependency, but I might not need that either fater some thought
<toolslive>
but you can replace the module Thing and the val something with thing with a class type.
slash^ has joined #ocaml
<gasche>
orbitz: if you want a signature to depend on a type, you can put it in a functor
<gasche>
see eg. my recent answer to Chantal Keller on the caml-beginners mailing list
<orbitz>
gasche: thanks, I figured that's where I'd have to go. I'm writing more of the skeleton now to see exactly what propeties I need, I might be able to avoid it all together, but I'll check your answer
WraithM has joined #ocaml
shinnya has quit [Ping timeout: 264 seconds]
tane has joined #ocaml
philtor_ has joined #ocaml
mcclurmc_ has joined #ocaml
mcclurmc has quit [Ping timeout: 255 seconds]
SethTisue has quit [Quit: SethTisue]
SethTisue has joined #ocaml
srax has quit [Quit: WeeChat 0.3.7]
SethTisue has quit [Client Quit]
Hannibal_Smith has joined #ocaml
SethTisue has joined #ocaml
philtor_ has quit [Ping timeout: 240 seconds]
jonludlam has quit [Ping timeout: 264 seconds]
jludlam has joined #ocaml
<BitPuffin>
I wonder how much work it would take to port opam to windows
<mrvn>
13
<BitPuffin>
sounds good
<Armael>
:))
<adrien_oww>
you won't port opam to windows
<BitPuffin>
you wouldn't kill a blind man
<adrien_oww>
you won't do anything without something like cygwin
<adrien_oww>
and that isn't windows
<BitPuffin>
well now that I am compiling ocaml in cygwin I'll be able to use it outside of cygwin right?
<BitPuffin>
So if you can bootstrap ocaml to work outside of cygwin it should be possible to do the same with opam
Arsenik has joined #ocaml
<BitPuffin>
looks like I'm successfully building with visual studio 2012
<BitPuffin>
I mean 12
<BitPuffin>
not 2012
<BitPuffin>
12 should be 2013
<Kakadu>
If you build it under cygwin it means that it should use non-windows paths everywhere, doesn't it?
<adrien>
cygwin is only there to glue the build process
<adrien>
BitPuffin: that you can call the compiler from outside cygwin doesn't mean you'll do anything useful without posix tools
<BitPuffin>
adrien: it isn't even related
<BitPuffin>
the point is
<BitPuffin>
you don't need cygwin to compile ocaml
<BitPuffin>
programs
<adrien>
sure
<adrien>
write BATCH files
<BitPuffin>
or you know
<BitPuffin>
port opam
<weykent>
companion_cube, my tests are too long for qtest, i think
<BitPuffin>
and put it on the path
<BitPuffin>
:P
<adrien>
what will that change?
<BitPuffin>
finally I have ocaml on windows
<adrien>
if the build scripts rely on posix tools, you will need them
<BitPuffin>
adrien: it will change the fact that opam doesn't work on windows?
<BitPuffin>
which build scripts
<BitPuffin>
opams?
<adrien>
the one opam runs
<BitPuffin>
everybody should use oasis :P
<BitPuffin>
lol
<adrien_oww>
and guess what
<adrien_oww>
oasis currently uses ocamlbuild
<adrien_oww>
and
<adrien_oww>
ocamlbuild calls sh and cp
<adrien_oww>
whic is fixable
<adrien_oww>
which*
<BitPuffin>
yeah
<BitPuffin>
it is
<adrien_oww>
but that would be the first step
<adrien_oww>
and I can even guide on the tasks to do
<adrien_oww>
but then you'll certainly find other little thing
<adrien_oww>
s
<BitPuffin>
yeah hmm
<adrien_oww>
and the more general issue is to run the build environment without anything else around
<BitPuffin>
will have to run it in cygwin indeed
<adrien_oww>
but you'll most probably need C library, you'll want to locate them
<adrien_oww>
and there are autotools-based systems which work really well but again need a posix shell
<adrien_oww>
posix environment*
<BitPuffin>
for now if I could have opam working in cygwin but putting files outside of cygwin that would be fine for the moment
<adrien_oww>
might work inside msys
<adrien_oww>
which is an abomination
<BitPuffin>
yeah
<BitPuffin>
well
<adrien_oww>
but an abomination that works in some cases
<BitPuffin>
so is cygwin
<adrien_oww>
msys is cygwin
<adrien_oww>
with lots of additional dirty things
<adrien_oww>
well, not lots but the ones added are really dirty
<BitPuffin>
thought msys had less things than cygwin
<adrien_oww>
well
<adrien_oww>
maybe it has less coverage
<adrien_oww>
but it's really the same thing
<adrien_oww>
the difference is that when msys spawns a process, it checks whether it's an msys one or a regular windows one
<BitPuffin>
thought that was what cygwin did
<adrien_oww>
and if it's a regular windows one, it translates env vars and command-line arguments to a Windows format
<adrien_oww>
i.e.
<BitPuffin>
oh right
<BitPuffin>
misinterpreted what you meant
<adrien_oww>
notepad.exe /etc/resolv.conf
<adrien_oww>
will work from msys, not from cygwin
<BitPuffin>
that's good though?
<BitPuffin>
then you only need one shell :P
<BitPuffin>
ontologiae has quit [Ping timeout: 264 seconds]
<BitPuffin>
adrien_oww: you use ocaml on windows right?
<adrien_oww>
yes
<adrien_oww>
as part of win-builds.org
<BitPuffin>
how did you install core?
<adrien_oww>
I didn't
<BitPuffin>
okay then
<BitPuffin>
how do I intsall core? :P
<adrien_oww>
no idea :)
<adrien_oww>
but I think you don't
<BitPuffin>
but I do
<BitPuffin>
xD
<adrien_oww>
you try to install Core_kernel instead
araujo has joined #ocaml
<BitPuffin>
oh
<BitPuffin>
I see
<adrien_oww>
and you grab a stick
<adrien_oww>
and get ready to hit people on the Core team
<BitPuffin>
well
<BitPuffin>
at least they will acknowledge my existence
<BitPuffin>
but yes you are right
<BitPuffin>
core_kernel it is
Moataz-E has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
Moataz-E has quit [Quit: Leaving]
<BitPuffin>
adrien_oww: I'm surprised that core_kernel can work with files
<BitPuffin>
since it's meant for javascript and such
SethTisue has quit [Quit: SethTisue]
<adrien_oww>
I think that's stubbed out in js_of_ocaml
<BitPuffin>
interesting
thomasga has joined #ocaml
SethTisue has joined #ocaml
BitPuffin has quit [Ping timeout: 244 seconds]
boogie has joined #ocaml
<companion_cube>
weykent: yes, qtest is pretty weak regarding long tests, you have ugly \ everywhere
<companion_cube>
but I think a ppx extension for tests would be nice
mort___ has quit [Ping timeout: 240 seconds]
AltGr has left #ocaml [#ocaml]
jwatzman|work has joined #ocaml
jwatzman|work has quit [Changing host]
jwatzman|work has joined #ocaml
jludlam has quit [Ping timeout: 264 seconds]
claudiuc has joined #ocaml
jwatzman|wor has joined #ocaml
jwatzman|work has quit [Disconnected by services]
jwatzman|wor is now known as jwatzman|work
jwatzman|work has quit [Changing host]
jwatzman|work has joined #ocaml
NoNNaN has quit [Remote host closed the connection]
NoNNaN has joined #ocaml
Hannibal_Smith has quit [Read error: Connection reset by peer]
SethTisue has quit [Read error: Connection reset by peer]
Hannibal_Smith has joined #ocaml
penglingbo has quit [Ping timeout: 240 seconds]
steamboat has quit [Ping timeout: 245 seconds]
SethTisue has joined #ocaml
steamboat has joined #ocaml
steamboat has quit [Write error: Connection reset by peer]
tobiasBora has joined #ocaml
q66 has joined #ocaml
alpounet has quit [Remote host closed the connection]
racycle has quit [Quit: ZZZzzz…]
jludlam has joined #ocaml
steamboat has joined #ocaml
BitPuffin has joined #ocaml
claudiuc has quit [Read error: Connection reset by peer]
claudiuc has joined #ocaml
rgrinberg has left #ocaml [#ocaml]
Kakadu has quit [Quit: Page closed]
bavarious has quit [Quit: quit]
maattdd_ has quit [Ping timeout: 255 seconds]
shallow has quit [Excess Flood]
hexo has joined #ocaml
jao has joined #ocaml
jao has quit [Changing host]
jao has joined #ocaml
tobiasBora has quit [Ping timeout: 244 seconds]
hhugo has joined #ocaml
rand000 has joined #ocaml
maattdd_ has joined #ocaml
manizzle has joined #ocaml
jludlam has quit [Read error: Connection reset by peer]
maattdd_ has quit [Ping timeout: 255 seconds]
wwilly has joined #ocaml
racycle has joined #ocaml
hhugo has quit [Quit: Leaving.]
ygrek_ has quit [Ping timeout: 240 seconds]
toolslive has quit [Remote host closed the connection]
manizzle has quit [Remote host closed the connection]
manizzle has joined #ocaml
Kakadu has joined #ocaml
pyon has quit [Quit: brb]
lostman has quit [Quit: Connection closed for inactivity]
strobegen has quit [Read error: Connection reset by peer]
strobegen has joined #ocaml
boogie has quit [Quit: Leaving...]
boogie has joined #ocaml
ollehar has quit [Ping timeout: 264 seconds]
Thooms has joined #ocaml
philtor_ has quit [Ping timeout: 264 seconds]
Hannibal_Smith has quit [Quit: Sto andando via]
alpounet has joined #ocaml
Eyyub has joined #ocaml
shinnya has joined #ocaml
Arsenik has quit [Read error: Connection reset by peer]
axiles has quit [Remote host closed the connection]
<reynir>
Anyone know if there's an ETA for next release of cohttp?
philtor_ has joined #ocaml
ggole has quit []
kclancy has joined #ocaml
alpounet has quit [Remote host closed the connection]
alpounet has joined #ocaml
<kclancy>
I seem to be getting wrong line numbers in my backtraces. I doubt anyone will have suggestions, but I decided to grumble about it just in case.
maattdd_ has joined #ocaml
steamboat has joined #ocaml
nickmeha1ry is now known as nickmeharry
thomasga has joined #ocaml
Thooms has quit [Quit: WeeChat 0.3.8]
Puffin has quit [Ping timeout: 240 seconds]
Puffin has joined #ocaml
wwilly has quit [Remote host closed the connection]
tane has quit [Quit: Verlassend]
philtor_ has quit [Ping timeout: 240 seconds]
Kakadu has quit [Quit: Konversation terminated!]
thomasga has quit [Quit: Leaving.]
thomasga has joined #ocaml
Eyyub has quit [Ping timeout: 240 seconds]
olauzon has quit [Quit: olauzon]
Simn has quit [Quit: Leaving]
Oejet has quit [Quit: Leaving.]
Eyyub has joined #ocaml
jludlam has joined #ocaml
tnguyen1 has quit [Quit: tnguyen1]
kclancy has quit [Ping timeout: 252 seconds]
thomasga has quit [Quit: Leaving.]
thomasga has joined #ocaml
lordkryss has quit [Ping timeout: 272 seconds]
hexo has quit [Ping timeout: 240 seconds]
hexo has joined #ocaml
jludlam has quit [Remote host closed the connection]
maattdd_ has quit [Ping timeout: 264 seconds]
segmond has joined #ocaml
ustunozgur has quit [Remote host closed the connection]
ollehar has joined #ocaml
darkf has joined #ocaml
tnguyen has joined #ocaml
thomasga has quit [Quit: Leaving.]
ollehar has quit [Ping timeout: 240 seconds]
madroach has quit [Ping timeout: 252 seconds]
Eyyub has quit [Ping timeout: 245 seconds]
madroach has joined #ocaml
ustunozgur has joined #ocaml
ontologiae has joined #ocaml
NoNNaN has quit [Remote host closed the connection]