1.unzip the following archives to c:\dev\c\compiler\mingw
binutils-2.17.50-20060824-1.tar.gz
gcc-core-3.4.5-20060117-1.tar.gz
gcc-g++-3.4.5-20060117-1.tar.gz
mingw32-make-3.81-1.tar.gz
mingw-runtime-3.9.tar.gz
mingw-utils-0.3.tar.gz
w32api-3.6.tar.gz
done!
2.run gdb-6.3-2.exe and install to c:\dev\c\compiler\mingw
done!
3.set windows path with c:\dev\c\compiler\mingw\bin
done!
4.unzip the following archives to c:\dev\c\ide\codeblocks
CB_20070715_rev4266_win32.7z
mingwm10.7z
wxmsw28u_gcc_cb_wx284.7z
done!
5.unzip wxWidgets-2.8.4.zip to c:\dev\c\lib\wxWidgets284
done!
6.compile wxWidgets-2.8.4 with following command in dos mode
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1 clean
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1
gcc_dll
gcc_dll\mswu
gcc_dll\mswud added
done!
7.setting compiler & debugger
search dir
add the above include/lib/mingw relative path
......anything else?
8.run cb new project with wxsmith
project name=p3;
path=c:\work\c\20070716\p3
dialog base...
setting global variable "wx"
base:C:\DEV\C\Lib\wxWidgets284
include:C:\DEV\C\Lib\wxWidgets284\include
lib:C:\DEV\C\Lib\wxWidgets284\lib
......anything else?
9.add codes to p3main.cpp
void p3Dialog::OnButton1Click(wxCommandEvent& event)
{
p3Dialog::StaticText1 -> SetLabel(_("abc"));
}
10.build it & i got these:
----------------------------------------------------
C:/DEV/C/Lib/wxWidgets284/include/wx/window.h:(.text$_ZN12wxStringBase10ConcatSelfEjPKc[wxStringBase::ConcatSelf(unsigned int, char const*)]+0x22): undefined reference to `wxStringBase::ConcatSelf(unsigned int, char const*, unsigned int)'
C:/DEV/C/Lib/wxWidgets284/include/wx/window.h:(.text$_ZN12wxStringBaseC2EPKc[wxStringBase::wxStringBase(char const*)]+0x25): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
C:/DEV/C/Lib/wxWidgets284/include/wx/window.h:(.text$_ZN12wxStringBaseC2ERKS_[wxStringBase::wxStringBase(wxStringBase const&)]+0x47): undefined reference to `wxOnAssert(char const*, int, char const*, char const*, char const*)'
obj\Debug\p3App.o: In function `ZN12wxEvtHandler12TryValidatorER7wxEvent':
C:/DEV/C/Lib/wxWidgets284/include/wx/app.h:(.rdata$_ZTV5p3App[vtable for p3App]+0x44): undefined reference to `wxApp::Initialize(int&, char**)'
C:/DEV/C/Lib/wxWidgets284/include/wx/app.h:(.rdata$_ZTV5p3App[vtable for p3App]+0x90): undefined reference to `wxAppConsole::OnAssertFailure(char const*, int, char const*, char const*, char const*)'
C:/DEV/C/Lib/wxWidgets284/include/wx/app.h:(.rdata$_ZTV5p3App[vtable for p3App]+0x94): undefined reference to `wxAppConsole::OnAssert(char const*, int, char const*, char const*)'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 11 seconds)
6 errors, 0 warnings
------------------------------------------------------
anything i havn't done yet ? or something i did wrong?
my first time in cb nightly builds, and my first time in c++ also...
i need a unicode C++ ide env, but i don't like a huge vc 2005...