On 19 June 2011 23:09, Henk-Jan van Tuyl <hjgt...@chello.nl> wrote:

> On Sat, 18 Jun 2011 22:35:55 +0200, Henk-Jan van Tuyl <hjgt...@chello.nl>
> wrote:
>
> >
> > L.S.,
> >
> > Whenever I try to link a program to wxhaskell, I get error messages about
> > "undefined reference to `_imp___ZTV17wxFindReplaceData'" What can I do
> > about this?
> >
>
> I found that file libwxmsw28u.a contains __imp___ZTV19wxFindReplaceDialog,
> is this difference because of different compiler versions?
>

No - they are different things (and not actually functions! - see below).
I'll try to look into the problem if I get some time tomorrow.

The error most likely means that the Haskell FFI is trying to import a
function which is no longer present in the C wrapper, for whatever reason
(very possibly an error on my part). The _ZTVxx part is probably name
mangling for C++ functions (there's a handy utility, c++filt, which lets you
decode C++ function names).

My c++filt suggests that __ZTV17wxFindReplaceData is the vtable for
wxFindReplaceData, so probably a missing/incorrect virtual function
definition, or something related.

Couple of questions to help me debug:

   - Platform (Windows / Linux / Mac)? I can readily look into 32 bit Linux
   or Windows. The error looks like a Windows error, but I just want to be sure
   (__imp___ is usually used by gcc on Windows for DLL import library names, I
   think)
   - Version you are using? Darcs tip?
   - GHC version (I have whatever is in HP 2011.2.0.0 most readily
   available)


Thanks
Jeremy
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to