昨天我在一個月左右的時間裏打開了Code :: Blocks,並沒有使用它,而且我在亂搞,用C++編寫了一些測試代碼。我編譯了一些正確的程序,然後突然間出現了一個我似乎無法解決的錯誤:Code :: Blocks'mingw32-g ++。exe的執行失敗
-------------- Build:Debug in asdfsdfsdgf(編譯器:GNU GCC編譯器)---------------
mingw32-g ++。exe -Wall -fexceptions -g -c C:\ Users \ aharman \ Documents \ CPP \ asdfsdfsdgf \ main.cpp -o obj \ Debug \ main.o 執行'mingw32-g ++ .exe -Wall -fexceptions -g -c C:\ Users \ aharman \ Documents \ CPP \ asdfsdfsdgf \ main.cpp -o obj \ 'C:\ Users \ aharman \ Documents \ CPP \ asdfsdfsdgf'中的Debug \ main.o'失敗。
這裏是我的代碼:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
我不記得曾有相關到代碼:: Blocks的任何東西任何改變,所以我不知道爲什麼會突然停止工作。我一直在做幾個小時的研究,但我找不到解決方案。創建一個線程對我來說永遠是最後的選擇,當我放棄尋找答案時,因爲它看起來毫無希望。有人知道這裏發生了什麼嗎?提前致謝。
它在另一個項目上工作嗎?重新安裝Code :: Blocks,看看會發生什麼。 – Eejin
我早些時候嘗試過,但沒有改變。 – TheBeocro
也就是說,它不適用於任何項目。我曾嘗試過重新安裝,但沒有任何改變。 – TheBeocro