On Tue, Nov 20, 2012 at 10:54 AM, Ruben Van Boxem <vanboxem.ru...@gmail.com> wrote: > 2012/11/20 deneme.true <deneme.t...@gmail.com> > >> Thanks for responds. >> >> >How did you build your cross compiler? You need a compiler that runs >> >on 32bit OS but targets 64bit OS. >> >> I am using Rubenv's x86_64-w64-mingw32 build: >> >> http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/gcc-4.7-release/x86_64-w64-mingw32-gcc-4.7.2-release-win32_rubenvb.7z/download >> >> Probably, it is better to ensure with executing gcc's >> -print-search-dirs parameter with command.[1] >> >> $ touch foo.c >> $ x86_64-w64-mingw32-g++.exe -### -o foo foo.c 2>&1 | \ >> > tr -s \\040 \\012 | \ >> > sed '/^"-L/!d;s,,,;s,"$,/,;:1;s,/[^/.][^/]*/\.\./,/,;t 1' | \ >> > sed 's,^, ,;1h;1s,.*,libraries:,;1G' >> libraries: >> c:/mingw/mingw64/lib/gcc/x86_64-w64-mingw32/4.7.2/ >> c:/mingw/mingw64/lib/gcc/ >> c:/mingw/mingw64/x86_64-w64-mingw32/lib/ >> c:/mingw/mingw64/x86_64-w64-mingw32/lib/ >> >> >> [1]http://www.mingw.org/wiki/HOWTO_Specify_the_Location_of_External_Libraries_for_use_with_MinGW >> >> Regards > > > Please ignore Earnie's remark, it is comletely besides the point. As Kai > said, the library names contain a "32" for compatibility. Check MSDN if you
I think you need to review the original post. <quote> I am trying to cross-compile wxWidgets library on 32 bit machine for Win64. I haven't a 64 bit machine and 64 bit OS. </quote> You cannot execute a 64bit binary on a 32bit OS. It doesn't work. You can create a cross compiler that are 32bit binaries that creates binaries for a 64bit Windows OS that executes on a 32bit OS but you cannot execute those 64bit binaries on the 32bit OS. > don't believe me ;-) (or check C:\Windows\system32 and C:\Windows\SysWOW64, > which contain 64-bit and 32-bit libraries respectively, all with exactly the > same name). Just think of the "32" signifying the Win32 API, which consists > of the functions defined on MSDN like CreateFile, etc... This may or may not > help put your conscience at ease :) > Yes this is true but the OP stated he doesn't have a 64bit OS. How is he even using the 64bit binaries? -- Earnie -- https://sites.google.com/site/earnieboyd ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public