Closed iweave1 closed 3 months ago
Bug category
Describe the bug
fails to compile with the below error: matplotplusplus/source/matplot/util/common.cpp:54:48: error: ignoring attributes on template argument ‘int ()(FILE)’ [-Werror=ignored-attributes] 54 | std::unique_ptr<FILE, decltype(&PCLOSE)> pipe(POPEN(cmd.c_str(), "r"), | ^ cc1plus: all warnings being treated as errors make[2]: [source/matplot/CMakeFiles/matplot.dir/build.make:230: source/matplot/CMakeFiles/matplot.dir/util/common.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:3147: source/matplot/CMakeFiles/matplot.dir/all] Error 2 make: *** [Makefile:156: all] Error 2
Steps to Reproduce
# git clone https://github.com/alandefreitas/matplotplusplus.git cd matplotplusplus mkdir build cd build cmake .. <options> -DCMAKE_BUILD_TYPE=Release
Output
Platform
Environment Details:
Additional context
Also got this error. How to fix compilation?
Bug category
Describe the bug
fails to compile with the below error: matplotplusplus/source/matplot/util/common.cpp:54:48: error: ignoring attributes on template argument ‘int ()(FILE)’ [-Werror=ignored-attributes] 54 | std::unique_ptr<FILE, decltype(&PCLOSE)> pipe(POPEN(cmd.c_str(), "r"), | ^ cc1plus: all warnings being treated as errors make[2]: [source/matplot/CMakeFiles/matplot.dir/build.make:230: source/matplot/CMakeFiles/matplot.dir/util/common.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:3147: source/matplot/CMakeFiles/matplot.dir/all] Error 2 make: *** [Makefile:156: all] Error 2
Steps to Reproduce
Output
Platform
Environment Details:
Additional context