Dear friends:
`     The gcc version used in my opensue 42.1 is 4.8, i installed a gcc 6 from the opensuse package download center by "oneclickinstall".`
      The installation process was sucessful, but the gcc in my system is still 4.8.
       So how to resolve this problem.
       Regards

You can have multiple GCC compiler packages installed on your system (great for development if you have a dependency upon an earlier/later version). If you look in /bin for gcc* (ls /bin/gcc*) you should see the different versions installed. You may have to alter your Makefile's macros for CPP and such accordingly to use the new version.

Sorry, I meant to look in /usr/bin, not /bin... Stupid keyboard!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.