如何用++编写C SimGrid仿真程序?我正在使用Ubuntu,遵循文档中的安装步骤,但是当我尝试测试文档本身的一些示例时,会出现一些错误和警告。
我转到示例文件夹,尝试运行一些S4U接口,但没有成功。
我试过这样做: g++ example.cpp -o示例
和:错误和警告
发布于 2021-05-14 11:15:48
构建示例:
tar xvf simgrid-3.27.tar.gz
cd simgrid-3.27/ && mkdir build && cd build/
cmake ..
make
make tests ## build tests and examples
sudo make installmake options SimGrid.html .(参考文献)( https://simgrid.org/doc/latest/index.html )和 simgrid-3.27/docs/source/Installing_SimGrid.rst,第342行:- make :构建测试和示例。
当构建了示例之后,可执行文件就会出现在“build/ examples /.”中。例如simgrid-3.27/build/examples/cpp/actor-create/s4u-actor-create
https://stackoverflow.com/questions/67526070
复制相似问题