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
help.

STC was built from contrib. Then I took directions from this thread
http://sourceforge.net/mailarchive/forum.php?thread_name=CDCEC7C4-4463-46FF-BA06-17CC842A05BD%40dc.uba.ar&forum_name=wxhaskell-devel

Did everything like this
http://haskell.org/haskellwiki/WxHaskell/Building_with_styledTextCtrl_support

However, this simple program does not work.

module Main where
import Graphics.UI.WX

main = start $ do
    f <- frame [text := "Styled Text Control Widget example"]
    p <- panel f []
    s <- styledTextCtrl p []

    status <- statusField []

    set f [ layout := container p $ margin 5 $ fill $ widget s
          , statusBar := [status]
          , clientSize := sz 800 600
          ]

Using:

ghc --make styledTextCtrl.hs

Linking styledTextCtrl.exe ...
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(eljrc.o):eljrc.cpp:(.text+0x112f):
 undefined reference to
`_imp___ZN16wxStyledTextCtrl6CreateEP8wxWindowiRK7wxPointRK6wxSizelRK8wxString'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(eljrc.o):eljrc.cpp:(.text+0x13f2):
 undefined reference to `_imp___ZTV16wxStyledTextCtrl'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x7):
undefi
ned reference to `_imp___ZN16wxStyledTextCtrl7AddTextERK8wxString'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x17):
undef
ined reference to
`_imp___ZN16wxStyledTextCtrl13AddStyledTextERK14wxMemoryBuffer'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x27):
undef
ined reference to `_imp___ZN16wxStyledTextCtrl10InsertTextEiRK8wxString'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x37):
undef
ined reference to `_imp___ZN16wxStyledTextCtrl8ClearAllEv'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x47):
undef
ined reference to `_imp___ZN16wxStyledTextCtrl18ClearDocumentStyleEv'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x57):
undef
ined reference to `_imp___ZN16wxStyledTextCtrl9GetLengthEv'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x67):
undef
ined reference to `_imp___ZN16wxStyledTextCtrl9GetCharAtEi'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x77):
undef
ined reference to `_imp___ZN16wxStyledTextCtrl13GetCurrentPosEv'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x87):
undef
ined reference to `_imp___ZN16wxStyledTextCtrl9GetAnchorEv'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x97):
undef
ined reference to `_imp___ZN16wxStyledTextCtrl10GetStyleAtEi'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0xa7):
undef
ined reference to `_imp___ZN16wxStyledTextCtrl4RedoEv'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0xbe):
undef
ined reference to `_imp___ZN16wxStyledTextCtrl17SetUndoCollectionEb'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0xcf):
undef
ined reference to `_imp___ZN16wxStyledTextCtrl9SelectAllEv'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0xdf):
undef
ined reference to `_imp___ZN16wxStyledTextCtrl12SetSavePointEv'

(...)

C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x2afc):
und
efined reference to `_imp__wxEVT_STC_START_DRAG'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x2b08):
und
efined reference to `_imp__wxEVT_STC_DRAG_OVER'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x2b14):
und
efined reference to `_imp__wxEVT_STC_DO_DROP'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x2b20):
und
efined reference to `_imp__wxEVT_STC_ZOOM'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x2b2c):
und
efined reference to `_imp__wxEVT_STC_HOTSPOT_CLICK'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x2b38):
und
efined reference to `_imp__wxEVT_STC_HOTSPOT_DCLICK'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x2b44):
und
efined reference to `_imp__wxEVT_STC_CALLTIP_CLICK'
C:\Users\Ulrim\AppData\Roaming\cabal\wxcore-0.12.1.7\ghc-7.2.1/libHSwxcore-0.12.1.7.a(stc.o):stc.cpp:(.text+0x2b50):
und
efined reference to `_imp__wxEVT_STC_AUTOCOMP_SELECTION'
collect2: ld returned 1 exit status


Any help setting up STC is very much appreciated.

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to