fork download
  1. int gtest_main(boost::program_options::variables_map &)
  2. {
  3. return RUN_ALL_TESTS();
  4. }
  5.  
  6. int main(int argc, char **argv)
  7. {
  8. ::testing::InitGoogleTest(&argc, argv);
  9. boost::program_options::options_description cmdline;
  10. return hpx::start(gtest_main, cmdline, argc, argv);
  11. }
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:16: error: ‘boost’ has not been declared
 int gtest_main(boost::program_options::variables_map &)
                ^~~~~
prog.cpp:1:55: error: expected primary-expression before ‘)’ token
 int gtest_main(boost::program_options::variables_map &)
                                                       ^
prog.cpp: In function ‘int main(int, char**)’:
prog.cpp:8:7: error: ‘::testing’ has not been declared
     ::testing::InitGoogleTest(&argc, argv);
       ^~~~~~~
prog.cpp:9:5: error: ‘boost’ has not been declared
     boost::program_options::options_description cmdline;
     ^~~~~
prog.cpp:10:12: error: ‘hpx’ has not been declared
     return hpx::start(gtest_main, cmdline, argc, argv);
            ^~~
prog.cpp:10:35: error: ‘cmdline’ was not declared in this scope
     return hpx::start(gtest_main, cmdline, argc, argv);
                                   ^~~~~~~
stdout
Standard output is empty