Hi Paulo,

On 21 October 2011 14:22, Paulo Pocinho <pocinho@gmail.com> wrote:
I have spent the last three days figuring how to build wxWidgets.
After much frustration with GCC, digging information from patches and
several websites, I can now build the 9,87 MB wxmsw28u_gcc.dll version
2.8.12 that works. Yet, I have a new barrier and have to ask for your

STC was built from contrib. Then I took directions from this thread

Did everything like this

At the moment, STC support is disabled as it is difficult to get contrib components to build (or not) reliably under the Cabal build system we have.

The error you have is because Cabal is not linking the library containing STC.

The quickest way to get this to work (it is a bit of a dirty hack) is to edit wxcore/Setup.hs. In myConfHooks you will find extra_wx_libs. If you add the name of your stc library correctly in there (and assuming that the compiler can find the path to it), I believe it should build, compile and link for you.

The clean way to do this is to come up with a proper solution for integrating contrib components in wxHaskell, which is mainly held up by the lack of a working wx-config for Windows which behaves identically to wx-config for Unix platforms. There has been some good work (not by me, I hasten to add!) in this direction, but we need to get it properly integrated and tested on all platforms