[問題] compile不通過的問題

看板C_and_CPP作者 ((((>( ̄▽ ̄)<))))時間13年前 (2011/08/11 22:55), 編輯推噓2(204)
留言6則, 2人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) DEV C++ 問題(Question): 這是bjarne stroustrup的新書 C++程式設計原理與實務(Programming -- Principles and Practice Using C++) 中的第一個程式 他要求我引入std_lib_facilities.h std_lib_facilities.h檔我是從 http://www.stroustrup.com/Programming/std_lib_facilities.h 下載的 存為檔名 std_lib_facilities.h 而我把std_lib_facilities.h擺在C:\Program Files\Dev-Cpp\include中 程式如下 #include <std_lib_facilities.h> int main() { cout<<"Hello,World!\n"; system("pause"); return 0; } 錯誤結果(Wrong Output): 錯誤訊息 行數 列數 1 0 C:\helloworld.cpp In file included from C:\helloworld.cpp 34 24 c:\program files\dev-cpp\include\std_lib_facilities.h ext/hash_map: No such file or directory. 編譯不通過 想請教大家我哪裡不對了 要如何更改 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.161.138.129 ※ 編輯: ndhucsie 來自: 1.161.138.129 (08/11 22:57)

08/12 01:06, , 1F
你的compiler太舊了,請換 code::blocks
08/12 01:06, 1F

08/12 01:13, , 2F
我現在Dev C++, tdm 4.5.2 換一下也是用得很好, 搞不
08/12 01:13, 2F

08/12 01:14, , 3F
清楚硬要換的點在哪?
08/12 01:14, 3F

08/12 01:27, , 4F
這個資料夾看看有沒有
08/12 01:27, 4F

08/12 01:28, , 5F
Dev-Cpp\lib\gcc\mingw32\4.x.x\include\c++\ext
08/12 01:28, 5F

08/12 10:09, , 6F
我猜他用的還是3.4.x吧
08/12 10:09, 6F
文章代碼(AID): #1EG-rtJv (C_and_CPP)