User forums > Help
Code::Blocks 12.11 compile of new project fails with wxWidgets-2.9.5
Ded:
Hi,
I am running Code::Blocks 12.11 on Windows 7 (build 7601 service pack 1 64 bit edition).
The compiler I use is GNU GCC version 4.7.1 Make version 3.82.
I also use wxWidgets 2.9.5 compiled shared=0 monolithic=1 unicode=1 use_xrc=1 build=release
The example files from samples compile from the command line with the same options and run fine.
Then I create a New Project for wxWidgets in code::blocks (gui=none, frame based, monolithic, unicode).
Finally when I build I get :
Full build log:
--- Code: ---||=== p-09-10-17-31, Release ===|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow|
::~wxStringTypeBuffer()]+0x7b):window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'|
mdi.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
mdi.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
mdi.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
mdi.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\libwxmsw29u.a(monolib_mdi.o)(.text$_ZN6wxMenuC1El[wxMenu::wxMenu(long)]+0x73):mdi.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
event.cpp||more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow|
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\libwxmsw29u.a(monolib_event.o)(.text$_ZN13wxThreadEventC1ERKS_[wxThreadEvent::wxThreadEvent(wxThreadEvent const&)]+0x117):event.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(wchar_t const*, unsigned int, std::allocator<wchar_t> const&)'|
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\libwxmsw29u.a(monolib_event.o)(.text$_ZN13wxThreadEventC1ERKS_[wxThreadEvent::wxThreadEvent(wxThreadEvent const&)]+0x23e):event.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()'|
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\libwxmsw29u.a(monolib_event.o)(.text$_ZNK16wxDropFilesEvent5CloneEv[wxDropFilesEvent::Clone() const]+0x104):event.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(unsigned int, wchar_t)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
strconv.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
strconv.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
...)]+0x20c):strconv.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
string.cpp||undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'|
string.cpp||undefined reference to `std::ostream& std::ostream::_M_insert<void const*>(void const*)'|
string.cpp||undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'|
string.cpp||undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'|
string.cpp||undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'|
string.cpp||undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'|
string.cpp||undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'|
string.cpp||undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'|
string.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()'|
string.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()'|
string.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::swap(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&)'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings (0 minutes, 12 seconds) ===|
--- End code ---
For info the project cbp file:
--- Code: ---<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="p-09-10-17-31" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Release">
<Option output="bin/Release/p-09-10-17-31" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="0" />
<Option compiler="gcc" />
<Option projectLinkerOptionsRelation="2" />
<Compiler>
<Add option="-O2" />
<Add directory="D:/C++/wxBook/wxWidgets-2.9.5/lib/gcc_lib/mswu" />
</Compiler>
<ResourceCompiler>
<Add directory="D:/C++/wxBook/wxWidgets-2.9.5/lib/gcc_lib/mswu" />
</ResourceCompiler>
<Linker>
<Add option="-s" />
<Add library="libwxmsw29u.a" />
<Add library="libwxpng.a" />
<Add library="libwxjpeg.a" />
<Add library="libwxtiff.a" />
<Add library="libwxzlib.a" />
<Add directory="D:/C++/wxBook/wxWidgets-2.9.5/lib/gcc_lib" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-pipe" />
<Add option="-mthreads" />
<Add option="-D__GNUWIN32__" />
<Add option="-D__WXMSW__" />
<Add option="-DwxUSE_UNICODE" />
<Add option='[[if (PLATFORM == PLATFORM_MSW && (GetCompilerFactory().GetCompilerVersionString(_T("gcc")) >= _T("4.0.0"))) print(_T("-Wno-attributes"));]]' />
<Add option="-Wall" />
<Add directory="D:/C++/wxBook/wxWidgets-2.9.5/include" />
<Add directory="D:/C++/wxBook/wxWidgets-2.9.5/contrib/include" />
</Compiler>
<ResourceCompiler>
<Add directory="D:/C++/wxBook/wxWidgets-2.9.5/include" />
</ResourceCompiler>
<Linker>
<Add option="-mthreads" />
<Add library="libkernel32.a" />
<Add library="libuser32.a" />
<Add library="libgdi32.a" />
<Add library="libwinspool.a" />
<Add library="libcomdlg32.a" />
<Add library="libadvapi32.a" />
<Add library="libshell32.a" />
<Add library="libole32.a" />
<Add library="liboleaut32.a" />
<Add library="libuuid.a" />
<Add library="libcomctl32.a" />
<Add library="libwsock32.a" />
<Add library="libodbc32.a" />
</Linker>
<Unit filename="p_09_10_17_31App.cpp" />
<Unit filename="p_09_10_17_31App.h" />
<Unit filename="p_09_10_17_31Main.cpp" />
<Unit filename="p_09_10_17_31Main.h" />
<Unit filename="resource.rc">
<Option compilerVar="WINDRES" />
</Unit>
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>
--- End code ---
I tried several combinations of shared and monolithic and they do not work either.
Really cannot find what is wrong in the code:blocks configuration.
Thanks for any help.
BlueHazzard:
Hi,
this is no full build log... The full build log can be found in the "Build log" tab. Please post this build log.
I had the same issue, but i don't remember how i solved it :-\... I would search on the wx forum.
I think you compiled the wx library without the unicode support, or you don't use the unicode libs...
greetings
stahta01:
--- Quote from: BlueHazzard on September 10, 2013, 06:30:34 pm ---Hi,
this is no full build log... The full build log can be found in the "Build log" tab. Please post this build log.
--- End quote ---
Please also do a re-build before posting the real full build log.
Tim S.
Ded:
Yes, you are correct, here is the build log (after rebuild)
--- Code: ----------------- Clean: Release in p-09-10-18-10 (compiler: GNU GCC Compiler)---------------
Cleaned "p-09-10-18-10 - Release"
-------------- Build: Release in p-09-10-18-10 (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -Wall -O2 -ID:\C++\wxBook\wxWidgets-2.9.5\include -ID:\C++\wxBook\wxWidgets-2.9.5\contrib\include -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\include -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib -ID:\ -c "D:\wxWidgets App\p-09-10-18-10\p_09_10_18_10App.cpp" -o obj\Release\p_09_10_18_10App.o
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -Wall -O2 -ID:\C++\wxBook\wxWidgets-2.9.5\include -ID:\C++\wxBook\wxWidgets-2.9.5\contrib\include -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\include -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib -ID:\ -c "D:\wxWidgets App\p-09-10-18-10\p_09_10_18_10Main.cpp" -o obj\Release\p_09_10_18_10Main.o
windres.exe -ID:\C++\wxBook\wxWidgets-2.9.5\include -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_dll\mswu -J rc -O coff -i D:\WXWIDG~1\P-4948~1\resource.rc -o obj\Release\resource.res
mingw32-g++.exe -LD:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib -LD:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib -LD:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_dll -o bin\Release\p-09-10-18-10.exe obj\Release\p_09_10_18_10App.o obj\Release\p_09_10_18_10Main.o obj\Release\resource.res -s -mthreads -lwxmsw29u -lwxpng -lwxjpeg -lwxtiff -lwxzlib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -mwindows
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x6391):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x775a):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x8d31):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x987e):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x9bdb):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x9d19):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xb234):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xbdfc):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xc3e2):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xcbbb):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xd8bf):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xdcd3):window.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text$_ZN18wxStringTypeBufferIwED1Ev[wxStringTypeBuffer<wchar_t>::~wxStringTypeBuffer()]+0x7b):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x245e):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x3879):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x3eaa):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x49c7):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text$_ZN6wxMenuC1El[wxMenu::wxMenu(long)]+0x73):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text+0x131e):event.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text$_ZN13wxThreadEventC1ERKS_[wxThreadEvent::wxThreadEvent(wxThreadEvent const&)]+0x117):event.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(wchar_t const*, unsigned int, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text$_ZN13wxThreadEventC1ERKS_[wxThreadEvent::wxThreadEvent(wxThreadEvent const&)]+0x23e):event.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text$_ZNK16wxDropFilesEvent5CloneEv[wxDropFilesEvent::Clone() const]+0x104):event.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0xabc):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0xce6):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x3a05):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x3a37):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x3a69):appbase.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x4b3d):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x5194):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x6447):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x68d0):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x69a1):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(unsigned int, wchar_t)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x6b08):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x6d21):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x7a17):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x804f):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text+0x4674):strconv.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text+0x5477):strconv.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text$_ZN8wxLogger10DoLogTraceERK8wxStringPKwz[wxLogger::DoLogTrace(wxString const&, wchar_t const*, ...)]+0x20c):strconv.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text$_ZNK14wxMBConv_win3211GetMBNulLenEv[wxMBConv_win32::GetMBNulLen() const]+0x3d9):strconv.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x143):string.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x183):string.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<void const*>(void const*)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x1b3):string.cpp: undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x1d1):string.cpp: undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x20f):string.cpp: undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x22d):string.cpp: undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x265):string.cpp: undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x285):string.cpp: undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x392):string.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x3b6):string.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()'
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x45f):string.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::swap(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&)'
Process terminated with status 1 (0 minutes, 14 seconds)
50 errors, 0 warnings (0 minutes, 14 seconds)
--- End code ---
I am sure I compiled the wxWidgets with unicode=1.
Here is the content of lib\gcc_lib :
--- Code: ---libwxexpat.a
libwxjpeg.a
libwxmsw29u.a
libwxmsw29u_gl.a
libwxpng.a
libwxregexu.a
libwxscintilla.a
libwxtiff.a
libwxzlib.a
--- End code ---
Thanks
BlueHazzard:
i think i had this problem, because i wanted to use UTF-8 instead of UTF-16 on windows...
still don't remember.... i hope stahta01 can help you.
from my point of view this is a wxWidgets related question, so i would post, in their forum...
greetins
Navigation
[0] Message Index
[#] Next page
Go to full version