Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <boost/program_options.hpp>
- using namespace boost::program_options;
- #include <iostream>
- using namespace std;
- /* Auxiliary functions for checking input for validity. */
- int main(int argc, char* argv[])
- {
- try {
- string ofile;
- string macrofile, libmakfile;
- bool t_given = false;
- bool b_given = false;
- string mainpackage;
- string depends = "deps_file";
- string sources = "src_file";
- string root = ".";
- options_description desc("Allowed options");
- desc.add_options()
- // First parameter describes option name/short name
- // The second is parameter to option
- // The third is description
- ("help,h", "print usage message")
- ("output,o", value(&ofile), "pathname for output")
- ("macrofile,m", value(¯ofile), "full pathname of macro.h")
- ;
- }
- I am using gcc-5.4.0-static and I am getting memory leak error
Add Comment
Please, Sign In to add comment