Comment 0 for bug 1203492

Revision history for this message
Jens Beyer (qcumber-some) wrote :

With the latest c++0x changes we again fail to build on Ubuntu 10.04 LTS (lucid).

Problem is that gcc-4.4 does not seem to recognize the nullptr keyword, although it claims to recognize -std=c++0x. The newer versions of gcc are not available officially for lucid. With gcc-4.6 nullptr appeared.

We now have at least 3 possible solutions:

1) stop building for lucid.
2) Use some inofficial PPA https://launchpad.net/~ubuntu-toolchain-r/+archive/test which seems to be something unsupported, but at least by Ubuntu, see https://wiki.ubuntu.com/ToolChain - I am not sure yet how to incorporate this into the current build, but I guess there will be some way.
3) Implement a workaround for the fact that nullptr is not defined. This should probably be along the "official" way this document http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2431.pdf shows. There must be a way to detect it is necessary to include this via some #ifdef magic...