Это файл main.cpp
Код: Выделить всё
#include
#include
#include
#include
#include "opencv4/opencv2/highgui.hpp"
#include
namespace po = boost::program_options;
int main(int ac, char** av){
std::string mode;
std::string addr;
po::options_description desc("Allowed options");
desc.add_options()
("help, H", "Produce help message")
("exec-mode, E", po::value(&mode)->default_value("exec"), "Choose the option to execute")
("rootaddr, A", po::value(&addr)->default_value("/home/ndemoura/PostDoc_Poli/ecl_workspace/KD_Tree/"), "Root address to save the logs and results")
;
po::variables_map vm;
po::store(po::parse_command_line(ac, av, desc), vm);
po::notify(vm);
if (vm.count("help")) {
std::cout default_value("exec"), "Choose the option to execute")
("rootaddr, A", po::value(&addr)->default_value("/home/postdoc/ecl_workspace/"), "Root address to save the logs and results")
;
po::variables_map vm;
po::store(po::parse_command_line(ac, av, desc), vm);
po::notify(vm);
if(vm.count("help")) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79868854/problems-linking-boost-with-cmake-undefined-reference-to-boostprogram-options[/url]