I have some code that uses std::tr1::function template. When I compile it on Ubuntu 13.04 with g++ 4:4.7.3-1ubuntu10 package, I get the following error: 'function’ in namespace ‘std::tr1’ does not name a type. If I change to use std::function, it still fails with similar error. Any help is appreciated. Thanks Alex