Skip to content

error __STDC_VERSION__ does not advertise C99 or later

Hi,

I am using Mac OS highSierra 10.13.1 and downloaded and installed Haskell Platform 8.2.1 Full 64bit-signed.pkg. Then as a first program I created a file called Selam.hs that includes followng one line:

"main = putStrLn "Hello, world!""

When I compiled the code using ghc -o Selam Selam.hs at the linking phase I am having "error STDC_VERSION does not advertise C99 or later" error.

Trac metadata
Trac field Value
Version 8.2.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
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