falconindy / ponymix

CLI volume control for PulseAudio
MIT License
177 stars 27 forks source link

Problem compiling with CXX := $(CXX) -std=c++11 #15

Closed shaked8634 closed 11 years ago

shaked8634 commented 11 years ago

Hi,

I use GCC 4.6.3 on Gentoo and had to replace in 'Makefile' the line: CXX := $(CXX) -std=c++11 with the line: CXX := $(CXX) -std=c++0x

I might be missing some options in my GCC but it did work.

falconindy commented 11 years ago

Right, your gcc doesn't have the c++11 flag because it was released before the c++11 standard was finalized. I'm not fixing this in the Makefile because it's the wrong thing to do. However, the Makefile will happily let you override the compiler so you can build it as:

 make CXX='g++ -std=c++0x'