User forums > Using Code::Blocks

c::b , wxWidgets 2.8.10 monolitic - mswu problem

<< < (2/3) > >>

mythcat:
@MortenMacFly : You will see more env vars ( i use it in default compiler, like SDL , HGE ...) pass by this .

--- Code: ----------------- Clean: Debug in wx2810-test01 ---------------

Cleaned "wx2810-test01 - Debug"

-------------- Build: Debug in wx2810-test01 ---------------

windres.exe -i D:\cata\wx2810-test01\resource.rc -J rc -o obj\Debug\resource.res -O coff -IC:\wxWidgets-2.8.10\include -ID:\cata\hge181
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Wno-attributes -Wall  -g -D__WXDEBUG__  -march=athlon-fx -march=athlon64 -march=athlon-mp -march=athlon-xp -march=i486   -IC:\wxWidgets-2.8.10\include -IC:\wxWidgets-2.8.10\contrib\include -IC:\wxWidgets-2.8.10\include -I"C:\Program Files\CodeBlocks\MinGW\include\SDL" -IC:\boost_1_42_0\boost -ID:\cata\hge181\include  -c D:\cata\wx2810-test01\wx2810_test01App.cpp -o obj\Debug\wx2810_test01App.o
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Wno-attributes -Wall  -g -D__WXDEBUG__  -march=athlon-fx -march=athlon64 -march=athlon-mp -march=athlon-xp -march=i486   -IC:\wxWidgets-2.8.10\include -IC:\wxWidgets-2.8.10\contrib\include -IC:\wxWidgets-2.8.10\include -I"C:\Program Files\CodeBlocks\MinGW\include\SDL" -IC:\boost_1_42_0\boost -ID:\cata\hge181\include  -c D:\cata\wx2810-test01\wx2810_test01Main.cpp -o obj\Debug\wx2810_test01Main.o
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Wno-attributes -Wall  -g -D__WXDEBUG__  -march=athlon-fx -march=athlon64 -march=athlon-mp -march=athlon-xp -march=i486   -IC:\wxWidgets-2.8.10\include -IC:\wxWidgets-2.8.10\contrib\include -IC:\wxWidgets-2.8.10\include -I"C:\Program Files\CodeBlocks\MinGW\include\SDL" -IC:\boost_1_42_0\boost -ID:\cata\hge181\include  -c D:\cata\wx2810-test01\GUIDialog.cpp -o obj\Debug\GUIDialog.o
mingw32-g++.exe -LC:\wxWidgets-2.8.10\lib -LC:\SDL-1.2.13\lib -L"C:\Program Files\CodeBlocks\MinGW\lib" -LC:\boost_1_42_0\boost -LD:\cata\hge181\lib  -o bin\Debug\wx2810-test01.exe obj\Debug\wx2810_test01App.o obj\Debug\wx2810_test01Main.o obj\Debug\GUIDialog.o  obj\Debug\resource.res  -Wl,--enable-auto-import -mthreads -lmingw32  C:\wxWidgets-2.8.10\lib\gcc_dll\libwxexpat.a C:\wxWidgets-2.8.10\lib\gcc_dll\libwxexpat.a C:\wxWidgets-2.8.10\lib\gcc_dll\libwxjpeg.a C:\wxWidgets-2.8.10\lib\gcc_dll\libwxmsw28u.a C:\wxWidgets-2.8.10\lib\gcc_dll\libwxpng.a C:\wxWidgets-2.8.10\lib\gcc_dll\libwxregexu.a C:\wxWidgets-2.8.10\lib\gcc_dll\libwxtiff.a C:\wxWidgets-2.8.10\lib\gcc_dll\libwxzlib.a -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 D:\cata\hge181\lib\gcc\libhge.a D:\cata\hge181\lib\gcc\libhgehelp.a  -mwindows
obj\Debug\wx2810_test01App.o:wx2810_test01App.cpp:(.rdata$_ZTV16wx2810_test01App[vtable for wx2810_test01App]+0x44): undefined reference to `wxApp::Initialize(int&, char**)'
obj\Debug\wx2810_test01App.o:wx2810_test01App.cpp:(.rdata$_ZTV16wx2810_test01App[vtable for wx2810_test01App]+0x90): undefined reference to `wxAppConsole::OnAssertFailure(char const*, int, char const*, char const*, char const*)'
obj\Debug\wx2810_test01App.o:wx2810_test01App.cpp:(.rdata$_ZTV16wx2810_test01App[vtable for wx2810_test01App]+0x94): undefined reference to `wxAppConsole::OnAssert(char const*, int, char const*, char const*)'
obj\Debug\wx2810_test01Main.o:C:/wxWidgets-2.8.10/include/wx/string.h:287: undefined reference to `wxStringBase::ConcatSelf(unsigned int, char const*, unsigned int)'
obj\Debug\wx2810_test01Main.o: In function `wxStringBase':
C:/wxWidgets-2.8.10/include/wx/string.h:352: undefined reference to `wxOnAssert(char const*, int, char const*, char const*, char const*)'
C:/wxWidgets-2.8.10/include/wx/string.h:368: undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 39 seconds)
6 errors, 0 warnings
 
--- End code ---
@oBFusCATed
--- Code: ---...but your application is build in ansi mode
--- End code ---
I build the wxWidgets with :

--- Code: ---mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1
--- End code ---
The app use wizard template code : with monolitic , dialog (not frame) .
I don't add additional code.
I use C::B is with mingw32 , under XP .

stahta01:
Try using "-DwxUSE_UNICODE". Or in other words defining "wxUSE_UNICODE".

Tim S.

MortenMacFly:

--- Quote from: mythcat on December 29, 2010, 05:15:13 pm ---@MortenMacFly : You will see more env vars ( i use it in default compiler, like SDL , HGE ...) pass by this .

--- Code: ---mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Wno-attributes -Wall  -g -D__WXDEBUG__  -march=athlon-fx -march=athlon64 -march=athlon-mp -march=athlon-xp -march=i486   -IC:\wxWidgets-2.8.10\include -IC:\wxWidgets-2.8.10\contrib\include -IC:\wxWidgets-2.8.10\include -I"C:\Program Files\CodeBlocks\MinGW\include\SDL" -IC:\boost_1_42_0\boost -ID:\cata\hge181\include  -c D:\cata\wx2810-test01\wx2810_test01App.cpp -o obj\Debug\wx2810_test01App.o
 
--- End code ---
@oBFusCATed
--- Code: ---...but your application is build in ansi mode
--- End code ---
I build the wxWidgets with :

--- Code: ---mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1
--- End code ---

--- End quote ---
As stahta01 said:

--- Quote from: stahta01 on December 29, 2010, 06:36:09 pm ---Try using "-DwxUSE_UNICODE". Or in other words defining "wxUSE_UNICODE".

--- End quote ---
You need to declare unicode when building wxWidgets itself and your application, too.

The reason is simply: You could also create an ansi version of a wx app.. you do this by not defining wxUSE_UNICODE... ;-)

mythcat:
I try to understand that , but in this moment is to much for me .

mythcat:
Now , I got this error : "cannot find -lwxmsw28_richtext".

--- Code: ----------------- Clean: Debug in wx003 ---------------

Cleaned "wx003 - Debug"

-------------- Build: Debug in wx003 ---------------

windres.exe -i D:\cata\wx003\resource.rc -J rc -o obj\Debug\resource.res -O coff -IC:\wxWidgets-2.8.10\include -IC:\wxWidgets-2.8.10\lib\gcc_dll\msw -ID:\cata\hge181
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -Wno-attributes -Wall  -g  -march=athlon-fx -march=athlon64 -march=athlon-mp -march=athlon-xp -march=i486   -IC:\wxWidgets-2.8.10\include -IC:\wxWidgets-2.8.10\contrib\include -IC:\wxWidgets-2.8.10\lib\gcc_dll\msw -I"C:\Program Files\CodeBlocks\MinGW\include\SDL" -IC:\boost_1_42_0\boost -ID:\cata\hge181\include  -c D:\cata\wx003\wx003App.cpp -o obj\Debug\wx003App.o
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -Wno-attributes -Wall  -g  -march=athlon-fx -march=athlon64 -march=athlon-mp -march=athlon-xp -march=i486   -IC:\wxWidgets-2.8.10\include -IC:\wxWidgets-2.8.10\contrib\include -IC:\wxWidgets-2.8.10\lib\gcc_dll\msw -I"C:\Program Files\CodeBlocks\MinGW\include\SDL" -IC:\boost_1_42_0\boost -ID:\cata\hge181\include  -c D:\cata\wx003\wx003Main.cpp -o obj\Debug\wx003Main.o
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -Wno-attributes -Wall  -g  -march=athlon-fx -march=athlon64 -march=athlon-mp -march=athlon-xp -march=i486   -IC:\wxWidgets-2.8.10\include -IC:\wxWidgets-2.8.10\contrib\include -IC:\wxWidgets-2.8.10\lib\gcc_dll\msw -I"C:\Program Files\CodeBlocks\MinGW\include\SDL" -IC:\boost_1_42_0\boost -ID:\cata\hge181\include  -c D:\cata\wx003\GUIDialog.cpp -o obj\Debug\GUIDialog.o
mingw32-g++.exe -LC:\wxWidgets-2.8.10\lib\gcc_dll -LC:\SDL-1.2.13\lib -L"C:\Program Files\CodeBlocks\MinGW\lib" -LC:\boost_1_42_0\boost -LD:\cata\hge181\lib  -o bin\Debug\wx003.exe obj\Debug\wx003App.o obj\Debug\wx003Main.o obj\Debug\GUIDialog.o  obj\Debug\resource.res  -mthreads  -lwxmsw28_richtext -lwxbase28_xml -lwxmsw28_adv -lwxmsw28_html -lwxmsw28_core -lwxbase28 -lwxpng -lwxzlib D:\cata\hge181\lib\gcc\libhge.a D:\cata\hge181\lib\gcc\libhgehelp.a  -mwindows
c:/program files/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28_richtext
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 31 seconds)
1 errors, 0 warnings

--- End code ---
I search on my computer with not results.
Another strange thing is on my resource.rc

--- Code: ---aaaa ICON "wx/msw/std.ico"

#include "wx/msw/wx.rc"

--- End code ---
What is aaaa ?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version