Jump to content
  • 0

gcc version


Dolphin86

Question


  • Group:  Members
  • Topic Count:  252
  • Topics Per Day:  0.06
  • Content Count:  700
  • Reputation:   15
  • Joined:  01/07/12
  • Last Seen:  

hye guys i keep having this same error every time i try to compile with non root user on centos 7

core.cpp:35:4: error: #error "GCC versions older than GCC 5 are not officially s                                                                                                                                                             upported anymore"
   #error "GCC versions older than GCC 5 are not officially supported anymore"

i try to update my gcc but failed, can someone guide me on how to fix this?

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

try this:

How To Install GCC on CentOS 7 | LinuxHostSupport

after that then this :

 

type: gcc --version

"if you install gcc version upper than 4.8 you need to type this:
type this :"

scl enable devtoolset-7 bash

the no 7 represent your gcc version it depends in what version you are using , you can check it by typing  gcc --version
 

then 

./configure
make clean
make server



 

 

 

 

 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  298
  • Reputation:   47
  • Joined:  03/30/13
  • Last Seen:  

check your gcc version if its updated after compiling. if not i suggest try this
https://serverkurma.com/linux/how-to-install-and-update-gcc-on-centos-7/

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

5 hours ago, Dolphin86 said:

hye guys i keep having this same error every time i try to compile with non root user on centos 7

core.cpp:35:4: error: #error "GCC versions older than GCC 5 are not officially s                                                                                                                                                             upported anymore"
   #error "GCC versions older than GCC 5 are not officially supported anymore"

i try to update my gcc but failed, can someone guide me on how to fix this?

type: gcc --version

if you install gcc version upper than 4.8 you need to type this:
type this :

scl enable devtoolset-7 bash

the no 7 represent your gcc version it depends in what version you are using , you can check it by typing  gcc --version
 

then 

./configure
make clean
make server




 

Edited by chadness
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  252
  • Topics Per Day:  0.06
  • Content Count:  700
  • Reputation:   15
  • Joined:  01/07/12
  • Last Seen:  

On 3/1/2022 at 12:04 PM, GM Winter said:

type: gcc --version

if you install gcc version upper than 4.8 you need to type this:
type this :

scl enable devtoolset-7 bash

the no 7 represent your gcc version it depends in what version you are using , you can check it by typing  gcc --version
 

then 

./configure
make clean
make server




 

i have try that, dint work

 

On 3/1/2022 at 10:39 AM, Vy Low said:

check your gcc version if its updated after compiling. if not i suggest try this
https://serverkurma.com/linux/how-to-install-and-update-gcc-on-centos-7/

did not work either

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

5 hours ago, Dolphin86 said:

i have try that, dint work

what gcc version are installed in your linux / centos

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  298
  • Reputation:   47
  • Joined:  03/30/13
  • Last Seen:  

15 hours ago, Dolphin86 said:

did not work either

this should work, i used it on my centos 7 vps

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

31 minutes ago, Vy Low said:

this should work, i used it on my centos 7 vps

im also using centos 7 and it works from me

i used this steps

 

try this:

How To Install GCC on CentOS 7 | LinuxHostSupport

after that then this :

 

type: gcc --version

"if you install gcc version upper than 4.8 you need to type this:
type this :"

scl enable devtoolset-7 bash

the no 7 represent your gcc version it depends in what version you are using , you can check it by typing  gcc --version
 

then 

./configure
make clean
make server

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  298
  • Reputation:   47
  • Joined:  03/30/13
  • Last Seen:  

13 minutes ago, GM Winter said:

im also using centos 7 and it works from me

i used this steps

 

try this:

How To Install GCC on CentOS 7 | LinuxHostSupport

after that then this :

 

type: gcc --version

"if you install gcc version upper than 4.8 you need to type this:
type this :"

scl enable devtoolset-7 bash

the no 7 represent your gcc version it depends in what version you are using , you can check it by typing  gcc --version
 

then 

./configure
make clean
make server

Im using xterm for vnc, devtoolset-7 doesnt work in xterm this is why i manually install the preferred gcc version for rathena

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...