我有一个.cc同时使用iostream和的文件malloc。我怎样才能编译它?使用g++,它说
error: 'malloc' was not declared in this scope
使用gcc,它说
fatal error: iostream: No such file or directory
源代码位于http://sequitur.info/sequitur_simple.cc
更新
我更改malloc为new并更改free为delete. 我仍然有很多错误。例如
/usr/include/c++/4.6/new:103:14: error: initializing argument 2 of âvoid* operator new(std::size_t, void*)â [-fpermissive]