Compilation ubuntu 11.04 - gcc 4.6
Floby opened this issue · 5 comments
Floby commented
Compilation fails on Ubuntu 11.04 with gcc 4.6.
Even though I made the effort to install the newest version of gcc, which in my opinion is a ridiculous limitation, it still doesn't compile.
$ gcc --version
gcc (Ubuntu 4.6.0-3~ppa1) 4.6.1 20110409 (prerelease)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
log here https://gist.github.com/1306454
danmilon commented
Which node version are you using?
zcbenz commented
Try to compile this code and tell me the result:
https://gist.github.com/1306740
And which PPA are you using?
Floby commented
node version
$ node -v
v0.4.13-pre
ppa
$ cat /etc/apt/sources.list.d/ubuntu-toolchain-r-test-natty.list
deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu natty main
deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu natty main
compilation
$ g++ nullptr.cc -std=c++0x
nullptr.cc: In function ‘int main(int, char**)’:
nullptr.cc:22:17: error: ‘nullptr’ was not declared in this scope
zcbenz commented
It seems that this ppa provided an old GCC, you may have to find another ppa or compile GCC 4.6 yourself. Sorry I don't have a ubuntu box to test it.
Floby commented
no, sorry. That's too much trouble just to try it out.