Nodesheep / RESTfulCweb

This is a web framework based on c++ design with a similar interface to the gin framework.
MIT License
88 stars 6 forks source link

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

Open lvxiaojie111 opened 1 year ago

lvxiaojie111 commented 1 year ago

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

Nodesheep commented 1 year ago

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

lvxiaojie111 commented 1 year ago

您的邮件已经收到。谢谢!                                          吕

lvxiaojie111 commented 1 year ago

您好,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/目录下出现的错误,应该怎么处理呢,期待您的回答。