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