From: Daan L. <daa...@xs...> - 2003-08-23 09:44:16
|
Hi David, > I just downloaded the CVS version of wxhaskell. It compiles > and installs > fine with a simple ./configure && make && make install, but I get the > following error when I try to compile HelloWorld.hs: > I run: > > ghc -package wx -o HelloWorld HelloWorld.hs > > and on link I get many lines such as the following: > /usr/lib/libwxc.so: undefined reference to > `wxGrid::GetColLabelValue(int)' > > So it looks like the wxgtk library isn't getting included in the link > somehow. Hmm, strange -- I just compiled the latest CVS version with ghc 5.5 with gtk-2.4 on freeBSD without problems. (at home I use ghc 6.01 on windows). Arthur showed yesterday that the latest CVS also works on macOSX Have you tried to compile the 0.1 version instead of the HEAD version? Does it give the same problems? (the building guide shows how to checkout a specific version). You could try to edit the package file by hand: 1) Edit "config/wxcore.pkg" and add "wx_gtk-2.4" as the first entry in the "extra_libraries" value. (now only contains "wxc") 2) run "make install" again. I hope this helps -- linking errors are terrible! Unfortunately, I am going away for a week to ICFP/HW/HIM, and our local linux expert, Andreas Loeh is also there, so I won't be able to track down your problem soon. However, I think that it is probably a bug in your configuration and maybe you can fix it yourself (have you run "ld-config" to update the search paths?, have you accidently enabled unicode in the wxWindows compile?, has everything been build from scratch without older libraries lying around on the PATH? have you run "make install" on wxGTK?). All the best, Daan. > I'm not entirely clear as to how the ghc package > system works, so > I haven't been able to troubleshoot this. I tried including > -lwx_gtk-2.4, > but that didn't help. :( > > My system is debian sarge, with wx_gtk-2.4 installed and > using ghc 6.0.1. > Any suggestions would be appreciated. > -- > David Roundy > http://civet.berkeley.edu/droundy/ > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a > single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click > here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > > |