如何将我的 apache 2.0 模块项目转换为 C++?
我已经为我的 Apache 2.0 环境开发了一个基于 C 的模块,它运行良好,但我不是 C 编程方面的专家,所以我想要 C++ try/catch、字符串和其他 C++ 好处的好处。
在研究 Apache 模块时,我遇到了几篇文章,其中明确指出所有工作都需要使用 C 而不是 C++;但是,我只是下载了 Apache openid 模块“mod_auth_openid”,它是用 C++ 编程的。我在阅读代码时注意到 extern 关键字的使用。
谁能确认我可以使用 C++,以及我将如何去做?由于许可的原因,我不确定是否可以在此处发布代码。
请让我知道我可以提供哪些其他信息,并提前致谢!
I already developed a C based module for my Apache 2.0 environment and it works well but I am not a total expert at C programming so I would like benefits of C++ try/catch, strings, and other C++ benefits.
While researching Apache modules, I ran across several articles that said specifically all work needed to be in C and not C++; however, I just download the Apache openid module "mod_auth_openid" and it is programmed in C++. I noticed the use of the extern keyword, while reading the code.
Can anyone confirm that I can use C++, and how I would go about it? I am not sure if I may post the code here because of the licensing.
Please let me know what other information I may provide and thanks in advance!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一些开源框架建议将C++层引入apache2.0模块环境,例如WSO2CPP 。如果您不想在代码和 apache 之间引入这样的库,那么提供的代码并不那么复杂难以理解。
您可能对
ServiceSkeleton
类感兴趣...Some open source framework propose C++ layer to apache2.0 module environment such as WSO2CPP. Code provided is not so complex to understand if you don't want to introduce such a library between your code and apache.
You may be interested in the
ServiceSkeleton
class ...