mingw32 mingw64 msys cygwin TDM-GCC

    本文地址:http://tongxinmao.com/Article/Detail/id/197


    mingw32:编译时将LINUX的API转换为WINDOWS的API,提供了对应WINSDK的一套头文件和库文件,不支持编译MFC.QT自带的mingw32就是这个

    mingw64: 使用LINXU的思想,使用cygwin1.dll模拟了一个LINUX的环境,应用程序要依赖cygwin1.dll

            可以编译32位或64位程序,支持交叉编译 。 

    CFLAGS += -m32  -m64

    CFLAGS += -static

    LFLAGS += -static


    Window系统下的MinGW,总是编译为32位代码。因为MinGW只支持32位代码。
    Window系统下的MinGW-w64(例如安装了TDM-GCC,选择MinGW-w64),默认是编译为64位代码,包括在32位的Windows系统下。

    mingw64也支持LINUX系统


    TDM-GCC,集成了2个, w32api 32位的用的MinGW 的,64位用的Mingw64的。

    cygwin: 完整的LINUX环境,可以使用mingw64

    Cygwin version 2.5.2 was the last version supporting Windows XP and Server 2003


    cygwin gcc编译出来的程序依赖cygwin1.dll,如想不依赖加上参数 

    1. gcc -mno-cygwin -Wall hello.c -o hello-no_cygwin.exe  

    但最新版本不支持这样,

    1. gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler.  


    msys: 从CYGWIN fork出来的分支,更新不活跃所以有点从较新版本CYGWIN fork了个MSYS2


    escbmp用mingw32运行结果不正确,使用mingw64编译OK,但cygwin只能在win7(32或64)上跑,在XP下运行不了

    kernel.dll  cancelsynchronousIo  这个函数接入点只支持VISTA以上系统




    CYGWIN xp安装方法:

    https://stackoverflow.com/questions/39479826/cygwin-2-5-2-mirror-getting-the-last-xp-release




    Here is almost the last version mirror of cygwin which supports Windows XP. 
    Cygwin version: 25 Aug 2016 ('30 Aug' dump is coming) 
    Setup version: 2.874 

    Setup files: 
    setup-x86.exe 
    (x64 is coming)

    Mirror to use: http://cygwin-xp.portfolis.net/cygwin 
    Run installer with '-X' flag to skip signature verification, because signature file is missing

    Thanks to http://www.fruitbat.org/Cygwin/timemachine.html





    cygwinxp

    Replicate last Cygwin repository compatible with Windows XP

    Created based on information and support of the FruitBat.org TimeMachine: http://www.fruitbat.org/Cygwin/timemachine.html

    The script will pull the required setup.exe, setup.ini file and cygwin mirror list from the right places. Then it will retrieve the latest version of packages from mirrors picked randomly so it would not overload a single site. There are 2 preferred mirrors with probably outdated packages and one main location where are all packages with right version (on slow link). Once done retrieving all files, then it will compare the sizes of the files with the content of setup.ini to do a simple validation. To download also the sources, you must remove the "A" from all occurrences of "^Asource".

    Script can be interrupted and restarted later, it will not re-retrieve packages already downloaded.

    https://github.com/czvtools/cygwinxp



    上一篇:DHT搜索
    下一篇:C++builder自绘控件框架