Hi John, On 15/08/2010 10:08 AM, John E. / TDM wrote: > On 8/15/2010 7:48 AM, Chris Sutcliffe wrote: >> Is there native 64-bit tool chain available? Looking in the automated >> builds, I can only find a i686 cross-compiler. I looked into the sezero >> builds, but unfortunately they don't have a shared libstdc++ (near as I >> could tell). > > I know you're already familiar with TDM-GCC's MinGW-w64 edition, > Chris, but I'd like to point out for the record that it is in most > ways a "native" 64-bit toolchain, as it's configured as > x86_64-w64-mingw32 for build, host, and target system. The binaries of > the compiler itself are built with "-m32", however, and if this is > causing any bugs or undue limitations, I'd be interested to hear about it.
I'm having no issues with TDM-GCC for the most part. For one of the projects I develop, I'm trying to make it compatible with the various MinGW based tool chains available (hence me looking for the MinGW-w64 tool chain). I have a small snag trying to use TDM-GCC to compile a 32-bit dll (Info-ZIP's zip32z64.dll) using the MinGW-w64 edition's dllwrap. So far I've come up with: dllwrap --target i386-mingw32 --machine i386 --driver-name gcc -m32 -Wl,--enable-stdcall-fixup --def windll/windllmingw.def -o../bin/zip32z64.dll -s windll.o windllrc.o api.o zipl.o cryptl.o ttyiol.o zipfilel.o zipupl.o fileiol.o utill.o crc32l.o globalsl.o deflatel.o treesl.o zbz2errl.o win32l.o win32zpl.o win32i64l.o ntl.o -luser32 -ladvapi32 --output-lib ../bin/libzip32z64.dll.a which ends with the following: c:/tdm64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/bin/ld.exe: i386:x86-64 architecture of input file `zip32z64.exp' is incompatible with i386 output I'm guessing that it's dlltool generating the zip32z64.exp file in 64-bit that dllwrap is attempting to use, but my assumption based on dllwrap's help is that the '--machine' option should set it appropriately. If you could point out where I'm going wrong, it would be greatly appreciated. Thank you, Chris ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
