implot_demos icon indicating copy to clipboard operation
implot_demos copied to clipboard

compile error in ubuntu23.04

Open cloudQuant opened this issue 8 months ago • 2 comments

/home/yun/Documents/cpp_img_demos/implot_demos/common/App.cpp: In constructor ‘App::App(std::string, int, int, int, const char**)’:
/home/yun/Documents/cpp_img_demos/implot_demos/common/App.cpp:152:5: error: ‘NvOptimusEnablement’ was not declared in this scope
  152 |     NvOptimusEnablement = AmdPowerXpressRequestHighPerformance = result["gpu"].as<bool>();
      |     ^~~~~~~~~~~~~~~~~~~
/home/yun/Documents/cpp_img_demos/implot_demos/common/App.cpp:152:27: error: ‘AmdPowerXpressRequestHighPerformance’ was not declared in this scope
  152 |     NvOptimusEnablement = AmdPowerXpressRequestHighPerformance = result["gpu"].as<bool>();
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/app.dir/build.make:76:CMakeFiles/app.dir/common/App.cpp.o] 错误 1
gmake[1]: *** [CMakeFiles/Makefile2:690:CMakeFiles/app.dir/all] 错误 2
gmake: *** [Makefile:136:all] 错误 2

cloudQuant avatar Jun 11 '24 09:06 cloudQuant