How to setup mingw64 and msys64 to compile admb in 64-bit mode for Windows 7 C Grandin December 2013 ---------------------------------------------------------------------------------------------------------------------------- Get Mingw64 from TDM (Do a custom install into C:\mingw and make sure to get everything it comes with): http://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%20Installer/tdm64-gcc-4.8.1-3.exe/download ---------------------------------------------------------------------------------------------------------------------------- Get MSYS64: http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/MSYS%20%2832-bit%29/MSYS-20111123.zip/download Unzip and put the msys directory into the mingw directory so it is located at C:\mingw\msys ---------------------------------------------------------------------------------------------------------------------------- Add these to the PATH: C:\mingw\bin C:\mingw\msys\bin ---------------------------------------------------------------------------------------------------------------------------- Copy find.exe from msys 32 bit version to the 64 bit version C:\mingw\msys\bin\find.exe - this is a fatal flaw with msys64 and must be fixed. Logout and back in or reboot to make the PATH changes take effect Open C:\mingw\msys\msys.bat Assuming you have the admb source in C:\admb-trunk, type the following into the MSYS shell: cd /c/admb-trunk make While ADMB is busy building in the MSYS shell, open a new DOS shell (it's safe to do so) and navigate to C:\admb-trunk\build\objects\dist and type: objdump -a optlp-df1b2-separable-adpool.obj For a 64-bit object the objdump program will say: file format: pe-x86-64 Congrats, you have 64-bit mingw ADMB! ---------------------------------------------------------------------------------------------------------------------------- If it is a 32-bit object the objdump program will say: file format: pe-i386