Page 1 of 1

ANSI vs Unicode issue?

Posted: Thu Dec 12, 2013 8:18 am
by 5k3105
This seems like it has something to do with an ANSI vs Unicode issue. Maybe?
C:\Windows\system32\cmd.exe /c "mingw32-make.exe -j 6 -e -f Makefile"
"----------Building project:[ Demo4 - Release ]----------"
mingw32-make.exe[1]: Entering directory `C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo4'
g++ -o ./Release/Demo4 @"Demo4.txt" -L. -mthreads -LC:/wxWidgets-3.0.0/lib/gcc_dll -lwxmsw30u_stc -lwxmsw30u_richtext -lwxmsw30u_xrc -lwxmsw30u_aui -lwxmsw30u_html -lwxmsw30u_adv -lwxmsw30u_core -lwxbase30u_xml -lwxbase30u_net -lwxmsw30u_richtext -lwxbase30u -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwxregexu -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -mwindows
./Release/MainFrame.o:MainFrame.cpp:(.text+0x23f): undefined reference to `_imp___ZNK14wxTranslations9GetStringERK8wxStringS2_'
./Release/MainFrame.o:MainFrame.cpp:(.text+0x4b0): undefined reference to `_imp___ZNK14wxTranslations9GetStringERK8wxStringS2_'
./Release/MainFrame.o:MainFrame.cpp:(.text+0x5c6): undefined reference to `_imp___ZNK14wxTranslations9GetStringERK8wxStringS2_'
./Release/MainFrame.o:MainFrame.cpp:(.text+0x6ef): undefined reference to `_imp___ZNK14wxTranslations9GetStringERK8wxStringS2_'
./Release/MainFrame.o:MainFrame.cpp:(.rdata$_ZTV9MainFrame[__ZTV9MainFrame]+0x364): undefined reference to `wxNonOwnedWindow::DoSetPathShape(wxGraphicsPath const&)'
./Release/wxcrafter.o:wxcrafter.cpp:(.text+0x12b6): undefined reference to `_imp___ZNK14wxTranslations9GetStringERK8wxStringS2_'
./Release/wxcrafter.o:wxcrafter.cpp:(.text+0x1f63): undefined reference to `_imp___ZNK14wxTranslations9GetStringERK8wxStringS2_'
./Release/wxcrafter.o:wxcrafter.cpp:(.text+0x241c): undefined reference to `_imp___ZNK14wxTranslations9GetStringERK8wxStringS2_'
./Release/wxcrafter.o:wxcrafter.cpp:(.text+0x271d): undefined reference to `_imp___ZNK14wxTranslations9GetStringERK8wxStringS2_'
./Release/wxcrafter.o:wxcrafter.cpp:(.text+0x2862): undefined reference to `_imp___ZNK14wxTranslations9GetStringERK8wxStringS2_'
./Release/wxcrafter.o:wxcrafter.cpp:(.text+0x29a2): more undefined references to `_imp___ZNK14wxTranslations9GetStringERK8wxStringS2_' follow
./Release/wxcrafter.o:wxcrafter.cpp:(.rdata$_ZTV18MainFrameBaseClass[__ZTV18MainFrameBaseClass]+0x364): undefined reference to `wxNonOwnedWindow::DoSetPathShape(wxGraphicsPath const&)'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [Release/Demo4] Error 1
mingw32-make.exe: *** [All] Error 2
Demo4.mk:80: recipe for target `Release/Demo4' failed
mingw32-make.exe[1]: Leaving directory `C:/Users/5K3105/Documents/CDev_CodeLite52/demo1/Demo4'
Makefile:4: recipe for target `All' failed
12 errors, 0 warnings
This is also the first time I'm attempting to build for a Release version. I wanted to know how I can tell it to build an all-in-one file with no DLL dependencies? Thanks.

Re: ANSI vs Unicode issue?

Posted: Thu Dec 12, 2013 10:02 am
by eranif
5k3105 wrote:This seems like it has something to do with an ANSI vs Unicode issue. Maybe?
I don't see anything problematic with the link line, however, you should consult with the wxForum about this one http://forums.wxwidgets.org/
5k3105 wrote:wxNonOwnedWindow::DoSetPathShape(wxGraphicsPath const&)
This line means that you need wxGRAPHICS_CONTEXT=1 - make sure that your build does enable it (by default, this is not enabled under MinGW)
5k3105 wrote:I wanted to know how I can tell it to build an all-in-one file with no DLL dependencies? Thanks.
You need to build wxWidgets as monolithic, again, you should consult with the wxWidgets forum on how to achieve this (see the above link)

Eran