
Hi Mauricio, yes it is a linking problem. When I compile the program on my computer with ghc --make A.hs -threaded the program will run on the Red Hat 3. If I compile it with ghc --make A.hs it won't. I don't know why though, and I don't think this is an expected behavior. Daniel suggested to file a bug report on this. I've never done that before. Where would I do this? Is there something I should know about filing a bug? I cannot compile the program on the Red Hat machine, as GHC is not installed there and I only have user rights. Cheers, Thomas Maurício wrote:
Now, when I invoke the program on my computer, it does what it should do: (...) However, when I run the program on a different computer, I get the following: (...) [thomas@... ~] $ ./count count.hs count: timer_create: Invalid argument
I don't know where time_create is exactly used here, however, it seems like a linking problem. Have you tried rebuilding your program in the remote machine? Actually, the fact that other programs did succeed seems strange to me. You could show some program that did work on both machines if you want to know why it actually worked.
If you don't want to rebuild, why not to use it as a script? You can do it by just adding this first line to your file:
#!/usr/bin/runhaskell
and allowing it to be used as a script:
chmod a+x count.hs
I usually add such scripts to ~/bin so I can run then anywhere (but check if your distribution do add ~/bin to path).
Maurício
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners