
Hi, I am trying to load the DLL(Wrapper.dll) in my code(Main.hs). When I am placing the dll in local directory, I am able to load it through following command: ghci Main.hs -L. -lWrapper But, I am not able to load it if I am putting it in some other directory(../../bin). I used the following command: ghci Main.hs -L../../bin/ -lWrapper I doubt I am not using the correct way to specify the path of dll in the command. Please correct me if I am wrong. Thanks in advance. Regards, Rajendra

On 27/03/2012 08:56, rajendra prasad wrote:
Hi,
I am trying to load the DLL(Wrapper.dll) in my code(Main.hs). When I am placing the dll in local directory, I am able to load it through following command:
ghci Main.hs -L. -lWrapper
But, I am not able to load it if I am putting it in some other directory(../../bin). I used the following command:
ghci Main.hs -L../../bin/ -lWrapper
I doubt I am not using the correct way to specify the path of dll in the command.
Please correct me if I am wrong.
What version of GHC is this? We fixed some bugs in that area recently. Cheers, Simon

Hi,
I am using GHC version 7.0.4.
Thanks,
Rajendra
On Wed, Mar 28, 2012 at 2:09 PM, Simon Marlow
On 27/03/2012 08:56, rajendra prasad wrote:
Hi,
I am trying to load the DLL(Wrapper.dll) in my code(Main.hs). When I am placing the dll in local directory, I am able to load it through following command:
ghci Main.hs -L. -lWrapper
But, I am not able to load it if I am putting it in some other directory(../../bin). I used the following command:
ghci Main.hs -L../../bin/ -lWrapper
I doubt I am not using the correct way to specify the path of dll in the command.
Please correct me if I am wrong.
What version of GHC is this? We fixed some bugs in that area recently.
Cheers, Simon

I think the fix eventually made its way into 7.4.1. This is the patch: http://hackage.haskell.org/trac/ghc/changeset/d146fdbbf8941a8344f0ec300e79db... Cheers, Simon On 28/03/2012 09:57, rajendra prasad wrote:
Hi,
I am using GHC version 7.0.4.
Thanks, Rajendra
On Wed, Mar 28, 2012 at 2:09 PM, Simon Marlow
mailto:marlowsd@gmail.com> wrote: On 27/03/2012 08:56, rajendra prasad wrote:
Hi,
I am trying to load the DLL(Wrapper.dll) in my code(Main.hs). When I am placing the dll in local directory, I am able to load it through following command:
ghci Main.hs -L. -lWrapper
But, I am not able to load it if I am putting it in some other directory(../../bin). I used the following command:
ghci Main.hs -L../../bin/ -lWrapper
I doubt I am not using the correct way to specify the path of dll in the command.
Please correct me if I am wrong.
What version of GHC is this? We fixed some bugs in that area recently.
Cheers, Simon

Thank you very much for the quick reply.
Regards,
Rajendra
On Wed, Mar 28, 2012 at 2:35 PM, Simon Marlow
I think the fix eventually made its way into 7.4.1. This is the patch:
http://hackage.haskell.org/**trac/ghc/changeset/** d146fdbbf8941a8344f0ec300e79db**eabc08d1eahttp://hackage.haskell.org/trac/ghc/changeset/d146fdbbf8941a8344f0ec300e79db...
Cheers, Simon
On 28/03/2012 09:57, rajendra prasad wrote:
Hi,
I am using GHC version 7.0.4.
Thanks, Rajendra
On Wed, Mar 28, 2012 at 2:09 PM, Simon Marlow
mailto:marlowsd@gmail.com> wrote: On 27/03/2012 08:56, rajendra prasad wrote:
Hi,
I am trying to load the DLL(Wrapper.dll) in my code(Main.hs). When I am placing the dll in local directory, I am able to load it through following command:
ghci Main.hs -L. -lWrapper
But, I am not able to load it if I am putting it in some other directory(../../bin). I used the following command:
ghci Main.hs -L../../bin/ -lWrapper
I doubt I am not using the correct way to specify the path of dll in the command.
Please correct me if I am wrong.
What version of GHC is this? We fixed some bugs in that area recently.
Cheers, Simon
participants (2)
-
rajendra prasad
-
Simon Marlow