boost的问题:‘;定时器&x2019;不是‘;boost’; 我试图安装一个称为SCONOS的包,它使用Python及其库,以及C++和其他库,如奥西和OCC。 它安装正确,但是当我使用SCONOS运行C++代码时,它给了我一个模糊的提升错误, |===========================================================| | Siconos software, version 4.4.0 - Copyright 2021 INRIA | | | | Free software under Apache 2.0 License. | |===========================================================| [ Generate CMakeLists.txt file in /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/.siconos ] [------------------- Configure project (cmake) --------------------] -- Boost version: 1.65.1 -- Configuring done -- Generating done -- Build files have been written to: /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/.siconos [---------------------- Build project (make) ----------------------] [ 33%] Built target BallPlugin Scanning dependencies of target BouncingBallTS [ 50%] Building CXX object CMakeFiles/BouncingBallTS.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp.o /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp: In function ‘int main(int, char**)’: /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:147:12: error: ‘progress_display’ is not a member of ‘boost’ boost::progress_display show_progress(N); ^~~~~~~~~~~~~~~~ /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:149:12: error: ‘timer’ is not a member of ‘boost’ boost::timer time; ^~~~~ /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:150:10: error: request for member ‘restart’ in ‘time’, which is of non-class type ‘time_t(time_t*) noexcept {aka long int(long int*) noexcept}’ time.restart(); ^~~~~~~ /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:162:9: error: ‘show_progress’ was not declared in this scope ++show_progress; ^~~~~~~~~~~~~ /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:167:41: error: request for member ‘elapsed’ in ‘time’, which is of non-class type ‘time_t(time_t*) noexcept {aka long int(long int*) noexcept}’ cout << "Computation Time " << time.elapsed() << endl; ^~~~~~~ /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:180:10: error: ‘SiconosException’ does not name a type; did you mean ‘SiconosVector’? catch (SiconosException& e) ^~~~~~~~~~~~~~~~ SiconosVector /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:182:13: error: ‘e’ was not declared in this scope cerr << e.report() << endl; ^ CMakeFiles/BouncingBallTS.dir/build.make:62: recipe for target 'CMakeFiles/BouncingBallTS.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp.o' failed make[2]: *** [CMakeFiles/BouncingBallTS.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp.o] Error 1 CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/BouncingBallTS.dir/all' failed make[1]: *** [CMakeFiles/BouncingBallTS.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2 Traceback (most recent call last): File "/usr/local/bin/siconos", line 826, in <module> main() File "/usr/local/bin/siconos", line 151, in main build_project(args) File "/usr/local/bin/siconos", line 768, in build_project run_command(cmake_build_command, args.quiet) File "/usr/local/bin/siconos", line 799, in run_command subprocess.run(command, check=True, **extra_args) File "/usr/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['cmake', '--build', '/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/.siconos', '--target', 'install', '--']' returned non-zero exit status 2. |===========================================================| |Siconos软件,版本4.4.0-版权所有2021 INRIA| | | |Apache 2.0许可下的自由软件| |===========================================================| [在/scratch/rsayoud/Documents/siconos tutorials/examples/mechanics/BouncingBall/.siconos中生成CMakeLists.txt文件] [--------------配置项目(cmake)---------------] --增强版:1.65.1 --配置完成 --生成完成 --构建文件已写入:/scratch/rsayoud/Documents/siconos tutorials/examples/mechanics/BouncingBall/.siconos [-------------------------构建项目(make)-------------------------] [33%]内置目标球插件 目标弹跳球的扫描相关性 [50%]构建CXX对象CMakeFiles/BouncingBallTS.dir/scratch/rsayoud/Documents/siconos教程/示例/力学/BouncingBall/BouncingBallTS.cpp.o /scratch/rsayoud/Documents/siconos教程/examples/mechanics/BouncingBall/BouncingBallTS.cpp:在函数“int main(int,char**)”中: /scratch/rsayoud/Documents/siconos tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:147:12:错误:“progress\u display”不是“boost”的成员 boost::progress\u display显示进度(N); ^~~~~~~~~~~~~~~~ /scratch/rsayoud/Documents/siconos教程/examples/mechanics/BouncingBall/BouncingBallTS.cpp:149:12:错误:“timer”不是“boost”的成员 boost::定时器时间; ^~~~~ /scratch/rsayoud/Documents/siconos tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:150:10:错误:请求成员在“time”中“restart”,这是非类类型的“time_t(time_t*)noexcept{aka long int(long int*)noexcept} time.restart(); ^~~~~~~ /scratch/rsayoud/Documents/siconos tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:162:9:错误:“show_progress”未在此范围内声明 ++显示出进步; ^~~~~~~~~~~~~ /scratch/rsayoud/Documents/siconos tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:167:41:错误:请求“time”中的成员“appeased”,这是非类类型的“time_t(time_t*)noexcept{aka long int(long int*)noexcept} cout

boost的问题:‘;定时器&x2019;不是‘;boost’; 我试图安装一个称为SCONOS的包,它使用Python及其库,以及C++和其他库,如奥西和OCC。 它安装正确,但是当我使用SCONOS运行C++代码时,它给了我一个模糊的提升错误, |===========================================================| | Siconos software, version 4.4.0 - Copyright 2021 INRIA | | | | Free software under Apache 2.0 License. | |===========================================================| [ Generate CMakeLists.txt file in /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/.siconos ] [------------------- Configure project (cmake) --------------------] -- Boost version: 1.65.1 -- Configuring done -- Generating done -- Build files have been written to: /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/.siconos [---------------------- Build project (make) ----------------------] [ 33%] Built target BallPlugin Scanning dependencies of target BouncingBallTS [ 50%] Building CXX object CMakeFiles/BouncingBallTS.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp.o /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp: In function ‘int main(int, char**)’: /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:147:12: error: ‘progress_display’ is not a member of ‘boost’ boost::progress_display show_progress(N); ^~~~~~~~~~~~~~~~ /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:149:12: error: ‘timer’ is not a member of ‘boost’ boost::timer time; ^~~~~ /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:150:10: error: request for member ‘restart’ in ‘time’, which is of non-class type ‘time_t(time_t*) noexcept {aka long int(long int*) noexcept}’ time.restart(); ^~~~~~~ /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:162:9: error: ‘show_progress’ was not declared in this scope ++show_progress; ^~~~~~~~~~~~~ /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:167:41: error: request for member ‘elapsed’ in ‘time’, which is of non-class type ‘time_t(time_t*) noexcept {aka long int(long int*) noexcept}’ cout << "Computation Time " << time.elapsed() << endl; ^~~~~~~ /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:180:10: error: ‘SiconosException’ does not name a type; did you mean ‘SiconosVector’? catch (SiconosException& e) ^~~~~~~~~~~~~~~~ SiconosVector /scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:182:13: error: ‘e’ was not declared in this scope cerr << e.report() << endl; ^ CMakeFiles/BouncingBallTS.dir/build.make:62: recipe for target 'CMakeFiles/BouncingBallTS.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp.o' failed make[2]: *** [CMakeFiles/BouncingBallTS.dir/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp.o] Error 1 CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/BouncingBallTS.dir/all' failed make[1]: *** [CMakeFiles/BouncingBallTS.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2 Traceback (most recent call last): File "/usr/local/bin/siconos", line 826, in <module> main() File "/usr/local/bin/siconos", line 151, in main build_project(args) File "/usr/local/bin/siconos", line 768, in build_project run_command(cmake_build_command, args.quiet) File "/usr/local/bin/siconos", line 799, in run_command subprocess.run(command, check=True, **extra_args) File "/usr/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['cmake', '--build', '/scratch/rsayoud/Documents/siconos-tutorials/examples/mechanics/BouncingBall/.siconos', '--target', 'install', '--']' returned non-zero exit status 2. |===========================================================| |Siconos软件,版本4.4.0-版权所有2021 INRIA| | | |Apache 2.0许可下的自由软件| |===========================================================| [在/scratch/rsayoud/Documents/siconos tutorials/examples/mechanics/BouncingBall/.siconos中生成CMakeLists.txt文件] [--------------配置项目(cmake)---------------] --增强版:1.65.1 --配置完成 --生成完成 --构建文件已写入:/scratch/rsayoud/Documents/siconos tutorials/examples/mechanics/BouncingBall/.siconos [-------------------------构建项目(make)-------------------------] [33%]内置目标球插件 目标弹跳球的扫描相关性 [50%]构建CXX对象CMakeFiles/BouncingBallTS.dir/scratch/rsayoud/Documents/siconos教程/示例/力学/BouncingBall/BouncingBallTS.cpp.o /scratch/rsayoud/Documents/siconos教程/examples/mechanics/BouncingBall/BouncingBallTS.cpp:在函数“int main(int,char**)”中: /scratch/rsayoud/Documents/siconos tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:147:12:错误:“progress\u display”不是“boost”的成员 boost::progress\u display显示进度(N); ^~~~~~~~~~~~~~~~ /scratch/rsayoud/Documents/siconos教程/examples/mechanics/BouncingBall/BouncingBallTS.cpp:149:12:错误:“timer”不是“boost”的成员 boost::定时器时间; ^~~~~ /scratch/rsayoud/Documents/siconos tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:150:10:错误:请求成员在“time”中“restart”,这是非类类型的“time_t(time_t*)noexcept{aka long int(long int*)noexcept} time.restart(); ^~~~~~~ /scratch/rsayoud/Documents/siconos tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:162:9:错误:“show_progress”未在此范围内声明 ++显示出进步; ^~~~~~~~~~~~~ /scratch/rsayoud/Documents/siconos tutorials/examples/mechanics/BouncingBall/BouncingBallTS.cpp:167:41:错误:请求“time”中的成员“appeased”,这是非类类型的“time_t(time_t*)noexcept{aka long int(long int*)noexcept} cout,c++,boost,C++,Boost,很可能缺少必要的#include文件。 Boost文件和其他文件可能包括其他文件,但未指定它们还包括哪些文件(通常称为“拖入”)。这意味着,如果您忘记包含某个内容,它可能仍然有效,因为它嵌套在另一个标题中。但在更新后,或在不同的配置下,由于内部包含文件已更改,因此不再工作 您应该检查该符号的正确包含文件,并将其添加到包含错误的任何文件的顶部。这对于几个文件可能是必需的。可能代码/scratch/rsayoud/Documents/siconos教程/示例/力学/BouncingBall/Boun

很可能缺少必要的
#include
文件。 Boost文件和其他文件可能包括其他文件,但未指定它们还包括哪些文件(通常称为“拖入”)。这意味着,如果您忘记包含某个内容,它可能仍然有效,因为它嵌套在另一个标题中。但在更新后,或在不同的配置下,由于内部包含文件已更改,因此不再工作


您应该检查该符号的正确包含文件,并将其添加到包含错误的任何文件的顶部。这对于几个文件可能是必需的。

可能代码
/scratch/rsayoud/Documents/siconos教程/示例/力学/BouncingBall/BouncingBallTS.cpp
缺少一个include。