箱庭諸島2+でコンパイルエラー
Windows XP SP3 + GCC4.4.0を使っています。
「箱庭諸島の保管庫」というサイトから箱庭諸島2+をダウンロードしてきて、コマンドプロンプトから、解凍したディレクトリに移動し、makeを実行しました。すると、
g++ -c -O2 -Wall main.c
In file included from main.c:1:
main.h:5:21: error: iostream.h: No such file or directory
In file included from main.h:6,
from main.c:1:
hako_io.h:5:20: error: fstream.h: No such file or directory
In file included from info.h:7,
from hako_io.h:12,
from main.h:6,
from main.c:1:
value.h:30: error: 'ifstream' has not been declared
In file included from hako_io.h:12,
from main.h:6,
from main.c:1:
info.h:30: error: 'ifstream' has not been declared
info.h:33: error: 'ofstream' has not been declared
info.h:101: error: 'ifstream' has not been declared
info.h:104: error: 'ofstream' has not been declared
In file included from hako_io.h:14,
from main.h:6,
from main.c:1:
map.h:32: error: 'ofstream' has not been declared
map.h:35: error: 'ifstream' has not been declared
map.h:185: error: 'ofstream' has not been declared
map.h:188: error: 'ifstream' has not been declared
In file included from hako_io.h:15,
from main.h:6,
from main.c:1:
command.h:20: error: 'ifstream' has not been declared
command.h:21: error: 'ofstream' has not been declared
command.h:74: error: 'ifstream' has not been declared
command.h:75: error: 'ofstream' has not been declared
In file included from main.h:6,
from main.c:1:
hako_io.h:29: error: ISO C++ forbids declaration of 'ofstream' with no type
hako_io.h:29: error: expected ';' before '*' token
main.c: In function 'int main()':
main.c:5: error: 'srandom' was not declared in this scope
make: *** [main.o] Error 1
というエラーが出て、コンパイルされません。
原因はいったいどこにあるのでしょうか。
「ifstream」や「ofstream」といった単語が多く見られるので、そこがエラーの元だとは思うのですが…
どなたか、知恵をお貸しいただけないでしょうか。
お礼
ありがとうございました。参考にさせて頂きます。