`
chenqi210
  • 浏览: 76858 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

MinGW

阅读更多

MinGW5.1.6.exe 比现在 MinGW/GCC 4.5.2的ming-get好用得多。但纠结的是 MinGW5.1.6的核心是 gcc3.4.5。

这个版本有个问题,遇到utf-8 BOM的 会在前三个字节上弄不清状况。

  ming-get-inst 有些问题,不能把mingw要安装的东西装上。甚至连 gcc.exe都没有装上。还要手动安装 mingw32-make。以及mingw32-make.exe 依赖的libintl-8.dll 和 libintl-8.dll依赖的 libiconv-2.dll。

  搞定这些之后,发现编译的小程序缺少运行的动态库libgcc_s_dw2-1.dll。加上后又报缺少libstdc++6.dll。都通过

mingw-get 的命令帮助提示加到 bin中。 转而google了 相关文章。有一篇

http://forums.codeblocks.org/index.php?topic=12183.15 写道
"libstdc++-6.dll" is provided by MinGW/GCC. You can use the "-static-libstdc++" swith for the linker to avoid this message, and have it directly included in "rt.exe".

Same for "libgcc_s_dw2-1.dll", use the linker switch "-static-libgcc".

 

http://lists-archives.org/mingw-users/16829-mingw-gcc-4-5-0-released.html 写道
General Notes:
--------------

* Shared libgcc: If all modules are linked with -shared-libgcc,
exceptions can be thrown across DLL boundaries. Note that this is
the default for all languages other than C. To disable this, use
-static-libgcc.

* Shared libstdc++: By default, C++ modules are linked with a DLL
version of libstdc++. To use the static version, use the
-static-libstdc++ flag.

* Translations into your language! See share\locale for a list of
codes. Unpack the translation archive in c:\MinGW and set the LANG
environment variable to the code of your preferred language.

* Inline functions decorated with __declspec(dllexport) are now always
generated and included in object files. This also applies to methods
defined in classes decorated with __declspec(dllexport).
This may cause a general increase in object size, since gcc generates
copies of each dllexport'd inline function in all object files whose
source includes the header defining the function.

Known Issues:
-------------

* The Java language is absent, pending resolution of build issues.

* When linking C++ modules with shared libstdc++ (the default), the
linker may warn about activating auto-import. The workaround is to
add one of the following flags:
a) -Wl,--enable-runtime-pseudo-reloc-v2
The warning is still printed, but is now harmless.
b) -Wl,--enable-auto-import
Actually does what the warning suggests.
c) -static-libstdc++
Avoids creating the issue in the first place.
d) none of the above.
You may get a 0xc0000005 error at runtime.
 

 

分享到:
评论

相关推荐

    GCC编译器mingw版本v10.0.0

    MinGW(Minimalist GNU on Windows),将经典的开源 C语言 编译器 GCC 移植到了 Windows 平台下,并且包含了 Win32API ,因此可以将源代码编译为可在 Windows 中运行的可执行程序。而且还可以使用一些 Windows 不...

    MinGW mingw64压缩包

    VSCode所需编译器MinGW的mingw64压缩包 MinGW 的全称是:Minimalist GNU on Windows 。它实际上是将经典的开源 C语言 编译器 GCC 移植到了 Windows 平台下,并且包含了 Win32API ,因此可以将源代码编译为可在 ...

    MingW VC 之.a .lib .dll .def 关系

    MinGW 之 (lib,dll,def,obj,exe) vs (a,dll,def,o,exe) 玩转攻略手记 一份粗糙的研究记录,有待补完和整理。 MinGW: c -> o gcc -c a.c c -> exe gcc a.c libs.o -o a.exe (从主程序a.c,附加libs,生成a.exe) o -...

    MinGW (gcc9.2.0-2) 解压即可使用

    MinGW\var\cache\mingw-get\packages 这个目录下有MinGW Installation Manager下载的安装包,gcc-ada-9.2.0-2-mingw32-bin.tar.xz、gcc-c++-9.2.0-2-mingw32-bin.tar.xz、gcc-core-9.2.0-2-mingw32-bin.tar.xz、gcc-...

    QtCreator+minGW+OpenGL第三方库freeglut

    QtCreator开发环境下(minGW编译器),进行OpenGL编程时使用的第三方库,使用时只需将压缩包内文件夹内容复制到Qt安装目录下的minGW目录下的对应文件夹内,如:D:\Qt5.4\5.4\mingw491_32\bin;并在新建工程的.pro...

    mingw32 下载安装包

    3.1:MinGW 是什么? MinGW 提供了一套简单方便的Windows下的基于GCC 程序开发环境。MinGW 收集了一系列免费的Windows 使用的头文件和库文件;同时整合了GNU ( http://www.gnu.org/ )的工具集,特别是GNU 程序开发...

    mingw环境下qt连接mysql详细教程,包括所需文件

    我安装的是qt5.9.2版本,选择的是mingw5.3.0,需要连接mysql,但是提示“driver is not load“,在参考了几个网上的教程及自己摸索后,终于可以成功连接。压缩包里包含qt的online安装包,“mysql connector c(32位,...

    mingw32 离线安装包

    MinGW 是一组包含文件和端口库,其功能是允许控制台模式的程序使用微软的标准C运行时(C Runtime)库(MSVCRT.DLL),该库在所有的 NT OS 上有效,在所有的 Windows 95发行版以上的 Windows OS 有效,使用基本运行时...

    【MinGW安装包】mingw-18.0.exe

    【MinGW安装包】mingw-18.0.exe

    MinGw5.14(包含下载内容)

    MinGW(Minimalist GNU for Windows),又称mingw32,是将GCC编译器和GNU Binutils移植到Win32平台下的产物,包括一系列头文件(Win32API)、库和可执行文件。 GCC支持的语言大多在MinGW也受支持,其中涵盖C、C++、...

    mingw-w64-8.1.0 多版本,windows下gcc编译工具,解压即用

    MinGW-W64 GCC-8.1.0 windows 下gcc编译版本,压缩包里包括四个版本,分别是 x86_64-posix-sjlj x86_64-posix-seh x86_64-win32-sjlj x86_64-win32-seh posix和win32是os接口类型 sjlj, seh是异常处理方案 ...

    winlibs gcc/g++编译器 mingw64 10.0.0-r4

    MinGW 的全称是:Minimalist GNU on Windows 。它实际上是将经典的开源 C语言 编译器 GCC 移植到了 Windows 平台下,并且包含了 Win32API ,因此可以将源代码编译为可在 Windows 中运行的可执行程序。而且还可以使用...

    MinGW.rar 完整安装包 Full 本地 绿色

    MinGW.rar 完整安装包,本地化,无需在线下载安装。因为MinGW本身不和windows注册表打交道,所以解压即可使用。 修改系统变量 PATH,增加 %MINGW_PATH%\bin;%MINGW_PATH%\libexec\gcc\mingw32\3.4.5; 增加变量: ...

    mingw5.14完整安装包(3)

    2、mingw-runtime-3.9.tar.gz MinGW 的运行支持库模块集合。 3、mingw-utils-0.3.tar.gz MinGW 常用工具集合。 4、binutils-2.15.91-20040904-1.tar.gz MinGW 支持gcc/g++的binutils 集合,如经典的ld 等。 5、gcc-...

    MinGW离线安装文件

    MinGW官方主要支持网络安装,不仅很慢,而且对无网络用户也很不方便。 这里整理了MinGW离线安装文件,包含C,C++编译器,make,gdb,直接解压并设置好环境变量即可使用,注意解压目录不能有空格和汉字。 如果需要...

    mingw5.1.4完整安装包(1)

    2、mingw-runtime-3.9.tar.gz MinGW 的运行支持库模块集合。 3、mingw-utils-0.3.tar.gz MinGW 常用工具集合。 4、binutils-2.15.91-20040904-1.tar.gz MinGW 支持gcc/g++的binutils 集合,如经典的ld 等。 5、gcc-...

    mingw5.14完整安装包(4)

    2、mingw-runtime-3.9.tar.gz MinGW 的运行支持库模块集合。 3、mingw-utils-0.3.tar.gz MinGW 常用工具集合。 4、binutils-2.15.91-20040904-1.tar.gz MinGW 支持gcc/g++的binutils 集合,如经典的ld 等。 5、gcc-...

    MinGW64与32——C/C++快速配置编译环境

    所以通常我们会选择MinGW作为编译环境,这是一个开源免费的C/C++编译器配合一些第三方支持代码提示的编辑器(如VSCode)进行开发学习,然而,mingw-w64.org只能下载到32位安装器,mingw.org部分人反映域名被劫持,...

    mingw5.1.6离线包

    花了我一天的时间下载的mingw5.1.6,国外的服务器速度真是慢。现在把下载的离线包打包上来共享,直接解压安装即可。 这个压缩包包括gcc-core-3.4.5-20060117-3.tar.gz,gcc-g++-3.4.5-20060117-3.tar.gz,gcc-g77-...

    MinGW5.1.4

    MinGW是指只用自由软件来生成纯粹的Win32可执行文件的编译环境,它是Minimalist GNU on Windows的略称。详情请参考<http://www.mingw.org>。 这里的“纯粹”是指「使用msvcrt.dll的应用程序」。无法使用MFC ...

Global site tag (gtag.js) - Google Analytics