[問題] compile不通過的問題
開發平台(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
08/12 01:06, 1F
→
08/12 01:13, , 2F
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
08/12 01:28, 5F
推
08/12 10:09, , 6F
08/12 10:09, 6F