Guest User

Untitled

a guest
Dec 14th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. #include <boost/program_options.hpp>
  2. using namespace boost::program_options;
  3.  
  4. #include <iostream>
  5. using namespace std;
  6.  
  7. /* Auxiliary functions for checking input for validity. */
  8.  
  9.  
  10. int main(int argc, char* argv[])
  11. {
  12. try {
  13. string ofile;
  14. string macrofile, libmakfile;
  15. bool t_given = false;
  16. bool b_given = false;
  17. string mainpackage;
  18. string depends = "deps_file";
  19. string sources = "src_file";
  20. string root = ".";
  21.  
  22. options_description desc("Allowed options");
  23. desc.add_options()
  24. // First parameter describes option name/short name
  25. // The second is parameter to option
  26. // The third is description
  27. ("help,h", "print usage message")
  28. ("output,o", value(&ofile), "pathname for output")
  29. ("macrofile,m", value(&macrofile), "full pathname of macro.h")
  30. ;
  31.  
  32. }
  33.  
  34. I am using gcc-5.4.0-static and I am getting memory leak error
Add Comment
Please, Sign In to add comment