Antwort: RE: Performance Tests in Haskell

Andreas.Schroeder at gillardon.de Andreas.Schroeder at gillardon.de
Tue Oct 21 12:02:03 EDT 2003


thanks a lot! (and sorry if this question was trivial)

regards,
Andreas Schroeder


|---------+--------------------------->
|         |           "Simon Marlow"  |
|         |           <simonmar at micros|
|         |           oft.com>        |
|         |                           |
|         |           20.10.2003 17:23|
|         |                           |
|---------+--------------------------->
  >-------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                   |
  |        An:      <Andreas.Schroeder at gillardon.de>, <glasgow-haskell-users at haskell.org>                             |
  |        Kopie:                                                                                                     |
  |        Thema:   RE: Performance Tests in Haskell                                                                  |
  >-------------------------------------------------------------------------------------------------------------------|




> shure, "caibd" is the called C procedure from AIBD.
> well then, i type
>
> > ghc Main.o AIBD.o HAIBDUtil.o -o HAIBD.exe
>
> then everything is fine, and i get my executable.
> Now i wanted to profile, and added the options "-prof
> --auto-all" to the
> first ghc command.
> When trying to link, i get lot's of undefined references:
>
> > ghc Main.o AIBD.o HAIBDUtil.o -o HAIBD.exe
>
> AIBD.o(.text+0x425):ghc1364.hc: undefined reference to `CC_LIST'
> AIBD.o(.text+0x430):ghc1364.hc: undefined reference to `CC_LIST'
> AIBD.o(.text+0x439):ghc1364.hc: undefined reference to `CC_ID'
> AIBD.o(.text+0x444):ghc1364.hc: undefined reference to `CC_ID'
> (...)
> AIBD.o(.text+0x5fc):ghc1364.hc: undefined reference to `CCCS'
> AIBD.o(.text+0x605):ghc1364.hc: undefined reference to `CCCS'
> AIBD.o(.text+0x626):ghc1364.hc: undefined reference to
> `PushCostCentre'
> (...)

You forgot to add -prof to the link line, too.

Cheers,
             Simon








More information about the Glasgow-haskell-users mailing list