OpenCOBOL(64bit) with MinGW(64bit) その4
■コンパイルテスト(コマンドプロンプトにて)msys.batを再度、起動(ここからはbash)cdmkdir checkcd checkvim test1.c以下を入力し、保存・終了#include<stdio.h>int main(int argc, char **argv) { printf("test1.\n"); printf("テスト1\n"); return 0;}gcc -o test1 test1.cobjdump -f test1.exe$ objdump -f test1.exetest1.exe: file format pei-x86-64architecture: i386:x86-64, flags 0x0000013a:EXEC_P, HAS_DEBUG, HAS_SYMS, HAS_LOCALS, D_PAGEDstart address 0x00000000004014d0vim test2.c以下を入力し、保存・終了#include<windows.h>int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPSTR lpszCmdLine, int nShowCmd) { MessageBox(NULL, "テスト2", "TEST2", MB_OK); return 0;}gcc -mwindows -o test2 test2.c$ objdump -f test2.exetest2.exe: file format pei-x86-64architecture: i386:x86-64, flags 0x0000013a:EXEC_P, HAS_DEBUG, HAS_SYMS, HAS_LOCALS, D_PAGEDstart address 0x00000000004014b0ちゃんと64bitアプリケーションが作成されている。(^^;