RE: resumeThread cannot find the thread! (GHC/HDirect)

2001-06-13 Thread Reuben Thomas

You need to use H/Direct 0.17, which unfortunately you have to compile
from source. 0.16 (which I presume you're using) doesn't work with GHC
4.08.2.

I checked your example against the CVS HEAD version of H/Direct, and it
worked fine, except that I had to make the following changes (to correct
unintentional errors, I presume):

[incr.c]
+ #include windows.h
- BOOL WINAPI DllMain(args...) { return TRUE; }
+ BOOL WINAPI DllMain(args) { return TRUE; }
int __declspec(dllexport) incr(int x) { return x + 1; }

[incr.idl]
module Incr { [pure]int incr([in]int); }

[Main.hs]
module Main(main) where
+ import Incr
main = print (incr 2)

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



RE: resumeThread cannot find the thread! (GHC/HDirect)

2001-06-13 Thread KAKIHARA Norihiro

Thank you for your detailed report!

 You need to use H/Direct 0.17, which unfortunately you have to compile
 from source. 0.16 (which I presume you're using) doesn't work with GHC
 4.08.2.

I see.
(By the way, I said the version of H/Direct was 0.60!  Too latest...ha ha!!)

But I had many errors and `make' aborted compilation.

* After the `make boot' ihc.exe was not generated,
  so the next step `make lib' failed.
* Copying ihc.exe from H/Direct 0.60 binary release
  also failed.

...I got tired of handling GHC!

But, however, your detailed report is greatly appreciated!
I wish you will have your Haskell life more delightful!


___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users