Code Generator wxSTC 'undefined reference
Posted: Tue Nov 26, 2013 10:51 am
Everything was working fine. The last thing I remember doing was changing a few widget/control names (in the wxCrafter property editor), then I get compile fail with 33 errors - specifically all the lines having anything to do with my wxSTC. So I closed the workspace, shut everything down, recreated the same setup - and I get the same errors:
After I finished writing this message I tried a third time with the most minimal window setup and it breaks the same way, errors on all the wxSTC lines.
I'm using the latest of CodeLite (5.3) and wxCrafter (1.3), free edition.
Code: Select all
C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 6 -e -f Makefile"
"----------Building project:[ Demo3 - Debug ]----------"
mingw32-make.exe[1]: Entering directory `C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3'
mingw32-make.exe[1]: Leaving directory `C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3'
mingw32-make.exe[1]: Entering directory `C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3'
codelitegcc g++ -c "C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/main.cpp" -g -O0 -Wall -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -IC:/wxWidgets-2.9.5/lib/gcc_dll/mswud -IC:/wxWidgets-2.9.5/include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -fno-keep-inline-dllexport -o ./Debug/main.o -I. -I.
g++ -o ./Debug/Demo3 @"Demo3.txt" -L. -mthreads -LC:/wxWidgets-2.9.5/lib/gcc_dll -lwxmsw29ud_xrc -lwxmsw29ud_aui -lwxmsw29ud_html -lwxmsw29ud_adv -lwxmsw29ud_core -lwxbase29ud_xml -lwxbase29ud_net -lwxmsw29ud_richtext -lwxbase29ud -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexud -lwxexpatd -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexud -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -mwindows
./Debug/wxcrafter.o: In function `ZN18MainFrameBaseClassC2EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizel':
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:64: undefined reference to `_imp__wxSTCNameStr'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:64: undefined reference to `_imp___ZN16wxStyledTextCtrlC1EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:66: undefined reference to `_imp___ZN16wxStyledTextCtrl13SetMarginTypeEii'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:67: undefined reference to `_imp___ZN16wxStyledTextCtrl13SetMarginMaskEii'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:68: undefined reference to `_imp___ZN16wxStyledTextCtrl18SetMarginSensitiveEib'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:69: undefined reference to `_imp___ZN16wxStyledTextCtrl14SetMarginWidthEii'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:71: undefined reference to `_imp___ZN16wxStyledTextCtrl11SetPropertyERK8wxStringS2_'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:72: undefined reference to `_imp___ZN16wxStyledTextCtrl12MarkerDefineEiiRK8wxColourS2_'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:73: undefined reference to `_imp___ZN16wxStyledTextCtrl12MarkerDefineEiiRK8wxColourS2_'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:74: undefined reference to `_imp___ZN16wxStyledTextCtrl12MarkerDefineEiiRK8wxColourS2_'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:75: undefined reference to `_imp___ZN16wxStyledTextCtrl12MarkerDefineEiiRK8wxColourS2_'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:76: undefined reference to `_imp___ZN16wxStyledTextCtrl12MarkerDefineEiiRK8wxColourS2_'
./Debug/wxcrafter.o:C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:77: more undefined references to `_imp___ZN16wxStyledTextCtrl12MarkerDefineEiiRK8wxColourS2_' follow
./Debug/wxcrafter.o: In function `ZN18MainFrameBaseClassC2EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizel':
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:80: undefined reference to `_imp___ZN16wxStyledTextCtrl14SetMarginWidthEii'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:83: undefined reference to `_imp___ZN16wxStyledTextCtrl13SetMarginTypeEii'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:84: undefined reference to `_imp___ZN16wxStyledTextCtrl13SetMarginMaskEii'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:85: undefined reference to `_imp___ZN16wxStyledTextCtrl14SetMarginWidthEii'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:86: undefined reference to `_imp___ZN16wxStyledTextCtrl18SetMarginSensitiveEib'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:89: undefined reference to `_imp___ZN16wxStyledTextCtrl9TextWidthEiRK8wxString'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:90: undefined reference to `_imp___ZN16wxStyledTextCtrl13SetMarginTypeEii'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:91: undefined reference to `_imp___ZN16wxStyledTextCtrl14SetMarginWidthEii'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:94: undefined reference to `_imp___ZN16wxStyledTextCtrl13SetMarginTypeEii'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:95: undefined reference to `_imp___ZN16wxStyledTextCtrl13SetMarginMaskEii'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:96: undefined reference to `_imp___ZN16wxStyledTextCtrl14SetMarginWidthEii'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:98: undefined reference to `_imp___ZN16wxStyledTextCtrl8SetLexerEi'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:100: undefined reference to `_imp___ZN16wxStyledTextCtrl13StyleClearAllEv'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:101: undefined reference to `_imp___ZN16wxStyledTextCtrl11SetWrapModeEi'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:102: undefined reference to `_imp___ZN16wxStyledTextCtrl20SetIndentationGuidesEi'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:103: undefined reference to `_imp___ZN16wxStyledTextCtrl11SetKeyWordsEiRK8wxString'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:104: undefined reference to `_imp___ZN16wxStyledTextCtrl11SetKeyWordsEiRK8wxString'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:105: undefined reference to `_imp___ZN16wxStyledTextCtrl11SetKeyWordsEiRK8wxString'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:106: undefined reference to `_imp___ZN16wxStyledTextCtrl11SetKeyWordsEiRK8wxString'
C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3/wxcrafter.cpp:107: undefined reference to `_imp___ZN16wxStyledTextCtrl11SetKeyWordsEiRK8wxString'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [Debug/Demo3] Error 1
mingw32-make.exe: *** [All] Error 2
Demo3.mk:79: recipe for target `Debug/Demo3' failed
mingw32-make.exe[1]: Leaving directory `C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo3'
Makefile:4: recipe for target `All' failed
33 errors, 0 warnings
I'm using the latest of CodeLite (5.3) and wxCrafter (1.3), free edition.