I have a .cc file that uses both iostream and malloc . How can I compile this? using g++ , he says
error: 'malloc' was not declared in this scope
using gcc , he says
fatal error: iostream: No such file or directory
The source code is at http://sequitur.info/sequitur_simple.cc
UPDATE
I changed malloc to new and changed free to delete . However, I get a lot of errors. for instance
/usr/include/c++/4.6/new:103:14: error: initializing argument 2 of รขvoid* operator new(std::size_t, void*)รข [-fpermissive]
source share