Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问gcc g++是哪个版本 #1

Open
lvxiaojie111 opened this issue Jun 1, 2023 · 3 comments
Open

请问gcc g++是哪个版本 #1

lvxiaojie111 opened this issue Jun 1, 2023 · 3 comments

Comments

@lvxiaojie111
Copy link

当我编译的时候 遇到了一些错误,您用的是什么版本,能够告知下

@Nodesheep
Copy link
Owner

您好,由于本项目一直基于mac开发,利用的是apple clang进行编译的,它相较于g++对语法的宽容度更高,所以g++编译时会出现很多编译问题。我刚才用g++编译了一遍,将已知的编译问题进行了修复,请拉取新代码进行编译验证,g++版本只要支持c++11即可,如还有问题请告知我,目前项目在持续迭代中,很多能力没有充分验证,感谢您的反馈和支持。

@lvxiaojie111
Copy link
Author

lvxiaojie111 commented Jun 1, 2023 via email

@lvxiaojie111
Copy link
Author

您好,cmake ..时没有问题,但是make 时,还是有类似下面这样的错误:
错误1:/usr/include/c++/9/bits/basic_string.tcc:212:32: error: ‘__N’ was not declared in this scope
212 | std::__throw_logic_error(__N("basic_string::"
| ~~~^~~~~~~~~~~~~~~~~
213 | "_M_construct null not valid"));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
错误2:/home/ljj/firesmoke/20230526SmartCity/web/src/cweb/router.h:73:31: required from here
/usr/include/c++/9/bits/basic_string.tcc:212:32: error: ‘__N’ was not declared in this scope
我只是列出了其中2个错误,很有很多类似的错误,但是这些错误都是在调用/usr/include/c++/9/bits/目录下出现的错误,应该怎么处理呢,期待您的回答。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants