John D Lamb J.D.Lamb at
Fri Jul 12 06:15:51 UTC 2013

On 12/07/13 01:37, Alex Chen wrote:
> 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.

Can you give more information? Is this a package you’re compiling or
your own code? What compiler flags are you using? What #includes are you
using? What is the line of code that causes the error?

John D Lamb

More information about the ubuntu-users mailing list