windows – Haskell Parsec编译错误
发布时间:2020-12-14 01:44:55 所属栏目:Windows 来源:网络整理
导读:我已经通过预构建的安装程序v6.8.2安装了 Haskell. 尝试使用GHC编译此示例文件时 module Main whereimport Text.ParserCombinators.Parsecimport System.Environmentmain :: IO ()main = do args - getArgs putStrLn ("Hello") 我收到以下错误: D:srcHask
我已经通过预构建的安装程序v6.8.2安装了
Haskell.
尝试使用GHC编译此示例文件时 module Main where import Text.ParserCombinators.Parsec import System.Environment main :: IO () main = do args <- getArgs putStrLn ("Hello") 我收到以下错误: D:srcHaskell>ghc -o read read.hs ghc -o read read.hs read.o(.text+0x1b5):fake: undefined reference to `__stginit_parseczm2zi1zi0zi0_TextziParserCombinatorsziParsec_' collect2: ld returned 1 exit status 我已经通过cabal安装了Parsec. 有没有人知道什么是错的?
尝试ghc –make -o read read.hs. GHC将负责链接器依赖性.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- windows-mobile – 新手机上的Windows Phone 8错误
- windows – 通信对象System.ServiceModel.Channels.Service
- 通知 – windows 8 metro app – toast notification
- windows-7 – 在组策略控制下查看Windows 7有效的防火墙规则
- windows-server-2008 – 在批处理文件中查找星期几? (Wind
- Windows2003下php5.4安装配置教程(Apache2.4)
- Windows PowerShell中的Windows?
- “以我的Windows桌面扩展到这个显示器”以编程方式
- 如何在两个站点之间配置没有共享存储的拉伸群集?
- 2018-5-12 windows 动态链接文件 .dll