[Seek Help] deepin20.9 自带gcc8.3版本,如何升级gcc以支持C++11 或C++17
Tofloor
poster avatar
深度之谜
deepin
2023-07-06 20:26
Author

截图_选择区域_20230706120227.png
deepin20.9 自带gcc8.3版本,如何升级gcc以支持C++11 或C++17,,

eclipse cdt中的unordered_map 都没法识别

截图_选择区域_20230706120902.png

之前用Ubuntu 22.04 自带gcc11,就没有这种问题,eclipse cdt 就开箱即用,感觉deepin在 这方面不易用,不友好

Reply Favorite View the author
All Replies
阿尼樱奈奈
Moderator
2023-07-06 20:32
#1

参考这个:https://bbs.deepin.org/phone/post/243303

Reply View the author
fuuko
deepin
2023-07-06 20:44
#2

-std=c++17都无法识别嘛?

Reply View the author
wlly-lzh
deepin
2023-07-06 20:51
#3
fuuko

-std=c++17都无法识别嘛?

8.3好像只支持c++14。

Reply View the author
深度之谜
deepin
2023-07-06 21:27
#4

感谢楼上几位朋友, 我用-std=c++17 不行,改成 -std=c++14就好了
截图_选择区域_20230706132305.png

Reply View the author
忘记、过去
deepin
2023-07-06 22:44
#5

https://blog.csdn.net/HuiCMs/article/details/107057108

似乎应该写 -std=c++1z 试试?以前在 eclipse 里面加过 -std=c++1y 没问题来着

Reply View the author
深度之谜
deepin
2023-07-07 01:45
#6
忘记、过去

https://blog.csdn.net/HuiCMs/article/details/107057108

似乎应该写 -std=c++1z 试试?以前在 eclipse 里面加过 -std=c++1y 没问题来着

截图_选择区域_20230706174241.png没得选

Reply View the author
深度之谜
deepin
2023-07-07 17:29
#7
阿尼樱奈奈

参考这个:https://bbs.deepin.org/phone/post/243303

看了这个帖子,感觉升级gcc11会有风险。。。

能安全升级吗

Reply View the author
阿尼樱奈奈
Moderator
2023-07-07 17:42
#8
深度之谜

看了这个帖子,感觉升级gcc11会有风险。。。

能安全升级吗

不确定有没有,我没有试过。

Reply View the author
ljq790615
deepin
2023-07-09 06:20
#9

我是源代码编译安装的 13.*

Reply View the author
软件技术就是生产力
deepin
2023-07-09 06:35
#10
The user is banned, and the content is hidden.
ThinKinG
deepin testing team
2023-07-12 17:14
#11

https://www.cnblogs.com/lizhenghn/p/3550996.html

https://blog.csdn.net/weixin_43354152/article/details/129247408

亲!这个可以参考下

Reply View the author
深度之谜
deepin
2023-07-18 18:34
#12
ThinKinG

https://www.cnblogs.com/lizhenghn/p/3550996.html

https://blog.csdn.net/weixin_43354152/article/details/129247408

亲!这个可以参考下

我直接盲试 换deepin 23 beta版本,果然没错,系统带gcc版本也升级到11.2了。这个最简单😁

Reply View the author