Andy,
On Apr 22, 2010, at 0:31, Andy Stewart wrote:
>> Structs.hsc:44:31: error: VteCharAttrFields.h: this file not exist
>>
>> But i have write "Graphics/UI/Gtk/Vte/VteCharAttrFields.h" in
>> `Extra-Source-Files`.
>> I missing something?
> Ah, i search other modules, found below solution:
>
> Remove `#include "VteCharAttrFields.h"` and call
> "VteCharAttrFields.h" explicitly.
> Like below:
>
> foreign import ccall "VteCharAttrFields.h
> getVteCharAttrUnderline"
> getVteCharAttrUnderline :: Ptr VteAttributes -> IO #{type
> gboolean}
>
> foreign import ccall "VteCharAttrFields.h
> getVteCharAttrStrikethrough"
> getVteCharAttrStrikethrough :: Ptr VteAttributes -> IO
> #{type gboolean}
This is the wrong approach. You need to #include "VteCharAttrFields.h"
in your Structs.hsc file and then ensure that you define cpp-include
to the path where this files lies. The extra-source-file just tells
cabal to include this file in the .tar.gz file. Please read the
documentation to cabal files, it's all explained much better there.
Cheers,
Axel.
------------------------------------------------------------------------------
_______________________________________________
Gtk2hs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel