Skip to content

make hsc2hs work with -c g++

Ticket #2897 (closed) changed hsc2hs to create a *_utils.c file containing stub functions for several libc functions. To avoid template-hsc.h having to include stdio.h, they use (void *) instead of (FILE *). C compilers will happily cast the void* to FILE*, but g++ is more picky. It's easily fixed by adding an explicit cast to FILE*.

Trac metadata
Trac field Value
Version 7.6.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component hsc2hs
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information