#5101: GHC and GHCi use different syntax for dynamic libraries
--------------------------------+-------------------------------------------
    Reporter:  mcandre          |        Owner:                                 
  
        Type:  feature request  |       Status:  infoneeded                     
  
    Priority:  normal           |    Milestone:  7.2.1                          
  
   Component:  Compiler         |      Version:  7.0.3                          
  
    Keywords:                   |     Testcase:                                 
  
   Blockedby:                   |   Difficulty:                                 
  
          Os:  MacOS X          |     Blocking:                                 
  
Architecture:  x86              |      Failure:  Incorrect warning at 
compile-time
--------------------------------+-------------------------------------------

Comment(by batterseapower):

 The -lfoo syntax works fine for me with GHC, and I have never used -dylib-
 install-name (I'm on OS X). That said, I have not tried your particular
 example because you do not provide the code for your various hs/c files.

 The problem you have in that Haskell Cafe thread is just because you have
 both charm.hs and charm.c, both of which will produce a file called
 charm.o. It looks like the charm.o from charm.c has overwritten the older
 one, which explains why the duplicate symbol error (from linking charm.o
 twice) mentions _Charm_getWidth_info.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5101#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to