yue/node-gui

Compilation ubuntu 11.04 - gcc 4.6

Floby opened this issue · 5 comments

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

Which node version are you using?

Try to compile this code and tell me the result:
https://gist.github.com/1306740

And which PPA are you using?

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

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.

no, sorry. That's too much trouble just to try it out.