[Haskell-beginners] cmath Install troubles

Tom Murphy amindfv at gmail.com
Thu Apr 19 12:31:57 CEST 2012


On 4/19/12, Brandon Allbery <allbery.b at gmail.com> wrote:
> On Wed, Apr 18, 2012 at 21:39, Tom Murphy <amindfv at gmail.com> wrote:
>
>> On 4/18/12, Brandon Allbery <allbery.b at gmail.com> wrote:
>> > On Wed, Apr 18, 2012 at 16:18, Tom Murphy <amindfv at gmail.com> wrote:
>> >> This makes it seem like cabal doesn't have access to _any_ math.h
>> >> file, but if this were the case, wouldn't I get many more
>> >> undefined-function errors than I do?
>> >
>> > Unless you are using an older ghc with -fvia-C,
>> [...]
>> I have 7.0.4.
>>
>
> 7.0.4 has -fasm by default, but you can force -fvia-C still.  With -fasm,
> the include files are not used afaik; since direct assembly code is created
> and not C code, a C include file is not useful.
>
>
>> Hmm, that's true...
>> I don't really understand how .hsc files are compiled, but isn't the
>> "#include <math.h>" in cmath done in the very standard FFI style?
>>
>
> If warnings are on, I think that elicits a "this is not used any more"
> warning with -fasm.
>


So does nobody use cmath anymore? I'm trying to install the latest
version (which is from 2008).

Tom



More information about the Beginners mailing list