简体   繁体   English

NS3 - python.h 文件无法定位编译错误

[英]NS3 - python.h file can not be located compilation error

I have included Python.h in my module header file and it was built successfully.我已经在我的模块头文件中包含了 Python.h 并且它已成功构建。

Somehow when I enabled-examples configuration to compile the example.cc file, which includes the module header file.不知何故,当我启用-examples 配置来编译 example.cc 文件时,其中包括模块头文件。 It reported the Python.h file can not be found - fatal error.它报告找不到 Python.h 文件 - 致命错误。

I have no clue at the moment what is being wrong.我现在不知道出了什么问题。

Could anyone give a hint?谁能给个提示? It is for the NS3(Network Simulator 3) framework.它适用于 NS3(网络模拟器 3)框架。

thanks for writing back to me:).谢谢你给我回信:)。

I solved the issue by adding the pyembed feature in the wscript within the same folder as my.cc file.我通过在与 my.cc 文件相同的文件夹中的 wscript 中添加 pyembed 功能解决了这个问题。

Thanks again:).再次感谢:)。

J. J。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM