Dear subscribers,

I admit that I am not an expert in using gcc/ld and especially their flags. 
Anyway I used them from time time and I know how to compile basic c codes.
I always developed in 32-bit world (x86) and I have never had issues.
I recently passed to a new system which has Win7 and 64-bit and I am trying to 
compile wxWidgets-3.0 to make a pure 32-bit bin library (so working on 32-bit 
systems and 64-bit).
Besides the flags that are package-specific, I'd like to exchange some opinion 
about the flags I am using to try to get the package compiled and linked.
TDM-GCC 4.8.1 claims to compile either for x64 or x86 architecture.
So this is the way I start the make.
make -f makefile.gcc <BUILD,MOOLITHIC and so on...> 
CXXFLAGS="-fnoinline-functions -m32" CPPFLAGS="-m32 -march i686" CFLAGS="-m32 
-march i686" LDFLAGS="-m32 -Ai686" RCFLAGS...
I get no errors or warnings during compilation.
The problem is that at the beginning of the linking phase I get

c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
 i386:x86-64 architecture of input file `gcc_mswuddll\monodll_version_rc.o' is 
incompatible with i386 output
collect2.exe: error: ld returned 1 exit status
makefile.gcc:5202: recipe for target 
'..\..\lib\gcc_dll\wxmsw30ud_gcc_custom.dll' failed
mingw32-make: *** [..\..\lib\gcc_dll\wxmsw30ud_gcc_custom.dll] Error 1

I really cannot get the point why monodll_version_rc.o was compiled for x86-64 
and how to force it to have i386/i686.

Thanks in advance for your help.
-- 
Marco N
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to