Oop, I've published my build detail on an EDIT in my previous post while you posted your new message... Well, I'll move this EDIT in a new post and will reply to your own in a next one (it's easy;))
--
EDIT (moved from my previous post) : back on an attempt to build C::B 32-bit against wxWidgets 2.8.12 32-bit RELEASE (previously built with TDM32-GCC under Windows 7 32-bit) using TDM64-GCC under Windows 7 64-bit. Here is the useful part of my full build log (I've remove the cleaning part and detail of well compiled components) :
-------------- Build: tinyXML in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler x86)---------------
Output file is base\tinyxml\libtxml.a with size 120.17 KB
-------------- Build: AutoRevision in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler x86)---------------
Output file is build_tools\autorevision\autorevision.exe with size 701.50 KB
-------------- Build: ConsoleRunner in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler x86)---------------
Output file is tools\ConsoleRunner\cb_console_runner.exe with size 725.60 KB
-------------- Build: Squirrel in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler x86)---------------
Output file is sdk\scripting\lib\libsquirrel.a with size 648.64 KB
-------------- Build: Squirrel std lib in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler x86)---------------
Output file is sdk\scripting\lib\libsqstdlib.a with size 81.32 KB
-------------- Build: SqPlus in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler x86)---------------
Output file is sdk\scripting\lib\libsqplus.a with size 72.27 KB
-------------- Build: scintilla in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler x86)---------------
Output file is devel\libwxscintilla_cb.a with size 4.16 MB
-------------- Build: wxpropgrid in Code::Blocks wx2.8.x (compiler: GNU GCC Compiler x86)---------------
g++.exe -Wall -O2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DEXPORT_LIB -DwxPG_SUPPORT_TOOLTIPS -iquote.objs\include -I.objs\include -I. -IC:\devlibs\wxWidgets-2.8.12\include -IC:\devlibs\wxWidgets-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Isdk\wxpropgrid\include -Iinclude -c X:\TMP\cb_svn_test\src\sdk\wxpropgrid\src\advprops.cpp -o .objs\sdk\wxpropgrid\src\advprops.o
g++.exe -Wall -O2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DEXPORT_LIB -DwxPG_SUPPORT_TOOLTIPS -iquote.objs\include -I.objs\include -I. -IC:\devlibs\wxWidgets-2.8.12\include -IC:\devlibs\wxWidgets-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Isdk\wxpropgrid\include -Iinclude -c X:\TMP\cb_svn_test\src\sdk\wxpropgrid\src\editors.cpp -o .objs\sdk\wxpropgrid\src\editors.o
g++.exe -Wall -O2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DEXPORT_LIB -DwxPG_SUPPORT_TOOLTIPS -iquote.objs\include -I.objs\include -I. -IC:\devlibs\wxWidgets-2.8.12\include -IC:\devlibs\wxWidgets-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Isdk\wxpropgrid\include -Iinclude -c X:\TMP\cb_svn_test\src\sdk\wxpropgrid\src\extras.cpp -o .objs\sdk\wxpropgrid\src\extras.o
g++.exe -Wall -O2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DEXPORT_LIB -DwxPG_SUPPORT_TOOLTIPS -iquote.objs\include -I.objs\include -I. -IC:\devlibs\wxWidgets-2.8.12\include -IC:\devlibs\wxWidgets-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Isdk\wxpropgrid\include -Iinclude -c X:\TMP\cb_svn_test\src\sdk\wxpropgrid\src\manager.cpp -o .objs\sdk\wxpropgrid\src\manager.o
g++.exe -Wall -O2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DEXPORT_LIB -DwxPG_SUPPORT_TOOLTIPS -iquote.objs\include -I.objs\include -I. -IC:\devlibs\wxWidgets-2.8.12\include -IC:\devlibs\wxWidgets-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Isdk\wxpropgrid\include -Iinclude -c X:\TMP\cb_svn_test\src\sdk\wxpropgrid\src\odcombo.cpp -o .objs\sdk\wxpropgrid\src\odcombo.o
g++.exe -Wall -O2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DEXPORT_LIB -DwxPG_SUPPORT_TOOLTIPS -iquote.objs\include -I.objs\include -I. -IC:\devlibs\wxWidgets-2.8.12\include -IC:\devlibs\wxWidgets-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Isdk\wxpropgrid\include -Iinclude -c X:\TMP\cb_svn_test\src\sdk\wxpropgrid\src\propgrid.cpp -o .objs\sdk\wxpropgrid\src\propgrid.o
g++.exe -Wall -O2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DEXPORT_LIB -DwxPG_SUPPORT_TOOLTIPS -iquote.objs\include -I.objs\include -I. -IC:\devlibs\wxWidgets-2.8.12\include -IC:\devlibs\wxWidgets-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Isdk\wxpropgrid\include -Iinclude -c X:\TMP\cb_svn_test\src\sdk\wxpropgrid\src\props.cpp -o .objs\sdk\wxpropgrid\src\props.o
g++.exe -Wall -O2 -pipe -mthreads -fmessage-length=0 -fexceptions -Winvalid-pch -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DCB_PRECOMP -DWX_PRECOMP -DwxUSE_UNICODE -DEXPORT_LIB -DwxPG_SUPPORT_TOOLTIPS -iquote.objs\include -I.objs\include -I. -IC:\devlibs\wxWidgets-2.8.12\include -IC:\devlibs\wxWidgets-2.8.12\lib\gcc_dll\mswu -Isdk\wxscintilla\include -Isdk\wxpropgrid\include -Iinclude\tinyxml -Isdk\wxpropgrid\include -Iinclude -c X:\TMP\cb_svn_test\src\sdk\wxpropgrid\src\xh_propgrid.cpp -o .objs\sdk\wxpropgrid\src\xh_propgrid.o
g++.exe -shared -Wl,--out-implib=devel\libwxpropgrid.a -Wl,--dll -Lbase\tinyxml -LC:\devlibs\wxWidgets-2.8.12\lib\gcc_dll .objs\sdk\wxpropgrid\src\advprops.o .objs\sdk\wxpropgrid\src\editors.o .objs\sdk\wxpropgrid\src\extras.o .objs\sdk\wxpropgrid\src\manager.o .objs\sdk\wxpropgrid\src\odcombo.o .objs\sdk\wxpropgrid\src\propgrid.o .objs\sdk\wxpropgrid\src\props.o .objs\sdk\wxpropgrid\src\xh_propgrid.o -o devel\wxpropgrid.dll -Wl,--enable-auto-image-base -Wl,--add-stdcall-alias -Wl,--enable-auto-import -Wl,--no-undefined -lwxmsw28u
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\devlibs\wxWidgets-2.8.12\lib\gcc_dll/libwxmsw28u.a when searching for -lwxmsw28u
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\devlibs\wxWidgets-2.8.12\lib\gcc_dll\libwxmsw28u.a when searching for -lwxmsw28u
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\devlibs\wxWidgets-2.8.12\lib\gcc_dll/libwxmsw28u.a when searching for -lwxmsw28u
c:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwxmsw28u
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 49 second(s))
1 error(s), 5 warning(s) (0 minute(s), 49 second(s))
To be sure I don't do an obvious mistake during the porcess, here it is :
1) Loaded CodeBlocks.workspace (under a C::B nightly beside, to be sure and even if I could use the C::B SVN already under output subdirectory)
2) Set the cb_release_type variable as "-O2" (wxWidgets 2.8.12 DLL being a RELEASE build too).
3) In case of, I've added the "-m32" option for compiler and linker (selecting all the project in the workspace, then build options in context menu)
4) Clicked "Rebuild all"
wxpropgrid seems to complain about wrong libwxmsw28u.a, but I don't know why...
Please point to the location of the "-m32" in the compiler build log you posted.
:o You're right ! I don't retrieve the -m32 neither in compiler nor linker options. So, my mistake (I guess I closed the dlg with cancel, really don't know)... Well, however, I fall in other error after adding (truly this time) -m32... But i'll see this later (must go now) and will be back to tell you.
Thanks for your eye, Tim
--
EDIT : it sounds like all the errors I've seen until now are because of a lack of "-m32" option. What is weird is that even if I add this option in the compiler and linker fields at project level, some targets seem to ignore it (and, then, I have to explicitely add the option at target level too... So, a lot of repetitive manipulations in perspective)... To be continued...
--
EDIT#2 : but, I think (sometimes), what a silly boy : creating a duplicated GCC entry at C::B level I can directly add the option at C::B level... Can't try just now, but will try this way...
--
EDIT#3 : done ! It compiles ;D
||=== Build finished: 0 error(s), 232 warning(s) (8 minute(s), 56 second(s)) ===|
About C::B SVN 32-bit against wxWidgets 2.8.12 DLL 32-bit using TDM64-GCC for both, yes, I'm convinced too it will not have chance to be achieved... Unless someone succeeded and report his experience here ^o^
Well, at this time, I live with what I have (C::B SVN 32-bit against wxWidgets 2.8.12 DLL 32-bit using TDM-GCC) and hope a day I'll succeed with C::B SVN 64-bit against wxWidgets 2.9.5 64-bit using TDM64-GCC).
--
EDIT : just to be sure, I've nevertheless tried to rebuild wxWidgets 2.8.12 DLL 32-bit with TDM64-GCC (since my last attempt was far away in the past)... And it's like I remembered : no success ! At final step, I get this error message :
i386:x86-64 architecture of input file `gcc_mswudll\monodll_version_rc.o' is incompatible with i386 output
So, it talk about winres (the resource compiler) and I already dealed with this, providing the equivalent of "-m32" option for it which is "-F pe-i386"... But it doesn't change anything : same error at the end.
Searching quickly, I've found this page where someone called billyonthemountain experienced the same situation (building wxWidgets in a side and C::B in another, for both cases), but lacking to pass "RCFLAGS="-F pe-i386" : http://forums.codeblocks.org/index.php?action=printpage;topic=12701.0 ; in his case, he solved it adding these RCFLAGS that I already provide in my case. Then, it doesn't help me.
If someone has an idea, it's welcome (and even if it's indirectly C::B related ; I'll open a thread in wx forum, when I'll have time...)
To finish, here is my full command line (here in two line to be more easily readable in the forum, but it's one line only) :
mingw32-make -j 12 -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 CFLAGS="-m32 -O2" CXXFLAGS="-m32 -O2"
CPP="gcc -E -DWX_CPU_X86" LDFLAGS="-m32" RCFLAGS="-F pe-i386 -DWX_CPU_X86"
Solved :)
Reading this thread http://forums.codeblocks.org/index.php?topic=12635.0, I had a look at the embedded manifest in codeblocks.exe and seen it indicated :
processorArchitecture="amd64"
So, I've extracted it (using mt.exe), changed the wrong declaration by "x86", then rembedded it (overwriting the previous in codeblocks.exe). And that was it :o