On Sat, Oct 25, 2014 at 1:47 PM, Mark Cianfaglione <m.cianfagli...@valydate.com> wrote: > Hi > > I'm using MSYS2 and Mingw-w64 on a Windows 7 64 bit system and I've got > a situation where I've compiles a program that uses GTK3 but I get a > "cannot execute binary file: Exec format error" when I try to execute > it. > > I thought perhaps that my makefile was borked so I made a simple "hello > world" using gtk3 and compiled it with the makefile and it works. > > I have a couple of other libraries that I'm linking to (libxls, xlslib, > mariadb) but the code compiles with no major issues (a few gtk > deprecation warnings) but otherwise it compiles cleanly. > > No I do have several large arrays of structs that I've got as global > variables but I've got the exact same code running on a Linux x86_64 > system without any issues. > > I'm compiling the code base (including the libxls and xlslib) on the > same machine in the same manner. Only the mariadb dll is not. But I > believe it's all in 64 bits. (is there a way of checking this?) >
>From the MSYS2 shell enter file /path/to/mariadb.dll Have you tried using our GTK3 and mariadb packages (and/or PKGBUILDs)? pacman -S mingw-w64-{x86_64,i686}-gtk3 mingw-w64-{x86_64,i686}-libmariadbclient > What can cause the above error? I really recommend building everything using the same (i.e. the MSYS2 provided) version of GCC and also using our packages where available. Seems we don't have libxls/xlslib and would appreciate a contribution of those: https://sourceforge.net/p/msys2/wiki/Contributing%20to%20MSYS2/ > > Any help would be appreciated. > > Mark > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Mingw-w64-public mailing list > Mingw-w64-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public ------------------------------------------------------------------------------ _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public