From: Jeremy O'D. <jer...@gm...> - 2011-06-19 23:26:16
|
On 19 June 2011 23:09, Henk-Jan van Tuyl <hj...@ch...> wrote: > On Sat, 18 Jun 2011 22:35:55 +0200, Henk-Jan van Tuyl <hj...@ch...> > 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 |