From: shelarcy <she...@ca...> - 2005-05-09 06:26:13
|
Read this thread, then I try to build wxHskell with wxWidgets 2.6.0. Okay, I see. wxHaskell can't use with wxWidgets 2.6.0's dll. If use wxWidgets 2.6.0 on Windows, there are many problem. Visual C++ 7.1 (Visual Studio .NET 2003) build wxc successfuly, and build wxHaskell successfuly too. But If use wxHaskell with wxWidgets 2.6.0's dll then libwxcore2.a and wxcore2.o can't resolve wxc print function, so both ghc and ghci can't use wxHaskell with wxWidgets 2.6.0's dll. Yes, I knew current version doesn't match Visual C++ 7.1 (e.g. Visual C++ 7.X's wxcdll doen't work with OpenGL Canvas.), so I don't know Visual C++ 6.0 has same problem. But this conclusion - If want to build wxHaskell on Windows, don't use wxWidgets 2.6.0 - are commonly. I think this problem doesn't exist in wxWidgets 2.5.3. Only ghci problem (and 7.1's OpenGL prolem) exists. On Sun, 08 May 2005 18:25:25 +0200, Daan Leijen <da...@cs...> wrote: >> as for being able to build wxhaskell themselves, I'm in the process >> of giving that a go (windows xp with cygwin and mingw,ghc-6.4.1, >> wxhaskell-src-0.9.4-1.zip,wxWidgets 2.6.0+2 patches). wxWidgets >> seems to have built and installed just fine, and ./configure for >> wxHaskell works, but when trying to make wxHaskell, I get the >> error below. Any suggestions? > > (snip compiler error message) > However, I have build wxHaskell with odbc on Windows -- but I was using > Visual C++ 6.0. > So, if you have visual studio, I recommend building it using the visual > studio > project. It is all explained in the build guide. With wxHaskell, you > would do: > > > ./configure --with-msc [--wxc-libname=wxcd] > > open the visual studio project wxc/wxc-2.x.dsw > build the dll > > > make > > First of all, I strongly recommend wxWidgets 2.4.2 since it is the only > version that works with ghci. Newer wxWidgets version use static > initializers that are not properly desctructed when the dynamic > link library is not re-loaded. Furthermore, there doesn't seem to > be that many new features useful on Windows. -- shelarcy <shelarcy capella.freemail.ne.jp> http://page.freett.com/shelarcy/ |