1

My ubuntu is 14.04, the default gcc and g++ is 4.8, I installed gcc and g++ 4.4 manually, so how can I specify the older version of gcc to call when I compile a program?

6
  • How did you install it? Usually you just call gcc-4.4, gcc-4.6, etc., but depending on how you installed, that may not work.
    – muru
    Oct 14, 2014 at 1:40
  • I installed like this: sudo apt-get install gcc-4.4 g++4.4, so can I specify which gcc to use in make? Oct 14, 2014 at 1:52
  • because when I make cuda 4.0 samples, this was always an error says: unsupported GNU version! gcc 4.5 and up are not supported! Oct 14, 2014 at 1:54
  • I'd say you might be asking for problems as some of the bindings generated on the older versions of the compiler might not be compatible with the later operating system. So things using shared object libraries might have difficulty. Why not just use the latest version?
    – mdpc
    Oct 14, 2014 at 2:09

0

Browse other questions tagged .