QMAKE和之后从these指令的mingw32-做成功, 我执行runhaskell Setup.hs build
,我得到以下错误:时出错,编译qtHaskell
[651 of 662] Compiling Qtc.Core.Attributes (Qtc\Core\Attributes.hs, dist\build\Qtc\Core\Attributes.o)
Qtc\Core\Attributes.hs:584:13:
Could not deduce (Qstt a (QDialogSc b))
arising from a use of `slotReject''
from the context (Qstt a (QDialogSc b1))
bound by the instance declaration
at Qtc\Core\Attributes.hs:582:10-52
Possible fix:
add (Qstt a (QDialogSc b)) to the context of
the instance declaration
or add an instance declaration for (Qstt a (QDialogSc b))
In the expression: slotReject'
In an equation for `reject'': reject' = slotReject'
In the instance declaration for `QsaSlotReject a'
的Attributes.hs文件(行578 - 583 ):
class QsaSlotReject w where
slotReject', reject' :: (Qslot w (w ->()), (w ->()))
instance (Qstt a (QDialogSc b)) => QsaSlotReject (a) where
slotReject' = (Qslot "reject()", \_ ->())
reject' = slotReject'
环境:
- Windows 7的
- 哈斯克尔平台2011.2.0
- 的Qt SDK 4.7
顺便说一句,我在这个过程中遇到了内存的两倍,但我想这并不重要。
我正在学习英语,对不起,我不能很好地使用它。 – SongPengpeng 2011-03-13 15:55:44