On 04/15/2016 09:59 PM, Andrew Robinson wrote: > I may be the only person writing a > program in GoAsm for for GTK+3 and cross-OS, but that has nothing to do with > my problem.
That you use GoAsm and GoLink instead of GCC can make a difference. Different build toolchains may not be compatible. Where did you get your GTK+ packages from? Does calling GTK+ functions even work? Either way, the stack usage is probably the same for all 32-bit Windows programs. In the MSYS2 GCC, argc is at ebp+8, argv is at ebp+12, so argv[1] is retrieved like this: mov eax, DWORD PTR [ebp+12] mov eax, DWORD PTR [eax+4] Maybe you accessed the argv array pointer instead of the array elements? You can try it yourself on MSYS2 and compiling to assembler code like this gcc `pkg-config --cflags gtk+-3.0` -S test.c -masm=intel and linking like this: gcc -o test test.s `pkg-config --libs gtk+-3.0` I have no idea how to do this in GoAsm and I'm not going to try. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list