久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

程序無法啟動(dòng),因?yàn)槿鄙?libgcc_s_dw2-1.dll

The program can#39;t start because libgcc_s_dw2-1.dll is missing(程序無法啟動(dòng),因?yàn)槿鄙?libgcc_s_dw2-1.dll)
本文介紹了程序無法啟動(dòng),因?yàn)槿鄙?libgcc_s_dw2-1.dll的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我用 Code::Blocks 用 C++ 創(chuàng)建了一個(gè)簡(jiǎn)單的程序.

如果我從 Code::Blocks 運(yùn)行它,它可以正常工作;但是如果我通過雙擊可執(zhí)行文件來運(yùn)行它,則會(huì)彈出一個(gè)帶有此消息的窗口:

<塊引用>

程序無法啟動(dòng),因?yàn)槟挠?jì)算機(jī)缺少 libgcc_s_dw2-1.dll.
嘗試重新安裝程序以解決此問題.

那么,問題是什么?我該怎么做才能修復(fù)它?

解決方案

我認(rèn)為這是 MinGW/gcc 編譯器問題,而不是 Microsoft Visual Studio 設(shè)置.

libgcc_s_dw2-1.dll 應(yīng)該在編譯器的 bin 目錄中.您可以將此目錄添加到您的 PATH 環(huán)境變量以進(jìn)行運(yùn)行時(shí)鏈接,或者您可以通過在編譯器標(biāo)志中添加-static-libgcc -static-libstdc++"來避免該問題.

如果您打算分發(fā)可執(zhí)行文件,則后者可能最有意義.如果您只打算在自己的機(jī)器上運(yùn)行它,那么更改 PATH 環(huán)境變量是一個(gè)有吸引力的選擇(減少可執(zhí)行文件的大小).

更新:

根據(jù) Greg Treleaven 的反饋(見下面的評(píng)論),我添加了以下鏈接:

[Code::Blocks項(xiàng)目構(gòu)建選項(xiàng)"的屏幕截圖]

[GNU gcc 鏈接選項(xiàng)]

后面的討論包括 -static-libgcc-static-libstdc++ 鏈接器選項(xiàng).

I have created a simple program in C++ with Code::Blocks.

If I run it from Code::Blocks, it works correctly; but if I run it by doubleclicking on the executable file, a window pops up with this message:

The program can't start because libgcc_s_dw2-1.dll is missing from your computer.
Try reinstalling the program to fix this problem.

So, what is the problem? What do I have to do to fix it?

解決方案

I believe this is a MinGW/gcc compiler issue, rather than a Microsoft Visual Studio setup.

The libgcc_s_dw2-1.dll should be in the compiler's bin directory. You can add this directory to your PATH environment variable for runtime linking, or you can avoid the problem by adding "-static-libgcc -static-libstdc++" to your compiler flags.

If you plan to distribute the executable, the latter probably makes the most sense. If you only plan to run it on your own machine, the changing the PATH environment variable is an attractive option (keeps down the size of the executable).

Updated:

Based on feedback from Greg Treleaven (see comments below), I'm adding links to:

[Screenshot of Code::Blocks "Project build options"]

[GNU gcc link options]

The latter discussion includes -static-libgcc and -static-libstdc++ linker options.

這篇關(guān)于程序無法啟動(dòng),因?yàn)槿鄙?libgcc_s_dw2-1.dll的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

boost_1_60_0 .zip installation in windows(Windows 中的 boost_1_60_0 .zip 安裝)
How do I get console output in C++ with a Windows program?(如何使用 Windows 程序在 C++ 中獲得控制臺(tái)輸出?)
How do I calculate the week number given a date?(如何計(jì)算給定日期的周數(shù)?)
OpenCV with Network Cameras(帶有網(wǎng)絡(luò)攝像機(jī)的 OpenCV)
Export all symbols when creating a DLL(創(chuàng)建 DLL 時(shí)導(dǎo)出所有符號(hào))
Getting started with OpenCV 2.4 and MinGW on Windows 7(Windows 7 上的 OpenCV 2.4 和 MinGW 入門)
主站蜘蛛池模板: av大片 | 国产精品久久久久久久7电影 | 亚洲91精品| 欧美手机在线 | 成人精品| 久草免费在线视频 | 91精品在线播放 | 亚洲欧美中文字幕 | 久久久久99 | av大全在线 | 美日韩免费视频 | 精品视频一区二区 | 在线看免费的a | 欧美日韩在线精品 | 午夜影院在线观看 | 亚洲国产精品视频 | 国产成人免费网站 | 亚洲精品一 | 四虎在线播放 | 久久亚洲欧美日韩精品专区 | 羞羞视频在线观免费观看 | 免费看啪啪网站 | 五月激情综合网 | 久久成人国产精品 | 精品国产一区二区三区性色av | 精品一区欧美 | 午夜精品在线观看 | 无码一区二区三区视频 | 日日日日日日bbbbb视频 | 亚洲在线| 亚洲欧美一区在线 | 欧美日日 | 九九热免费在线观看 | 国产精品久久久久久久久久久新郎 | 不卡在线视频 | 久久国产视频一区 | 成人性生交大片免费看r链接 | 免费a网站 | 黄色网址在线播放 | 精品欧美一区二区在线观看 | 日韩精品免费视频 |