Index: build/bootstrap/boost_trycompile/boost_trycompile.cpp |
=================================================================== |
--- a/build/bootstrap/boost_trycompile/boost_trycompile.cpp |
+++ b/build/bootstrap/boost_trycompile/boost_trycompile.cpp |
@@ -1,19 +1,19 @@ |
-#include <boost/program_options.hpp> |
+#include <boost/thread.hpp> |
-// Can test with find_package(python) |
-// #include <boost/python.hpp> |
-// #include <Python.h> |
-// using namespace boost::python; |
#include <fstream> |
#include <iostream> |
+#include <string> |
using std::ostream; |
using std::ofstream; |
using std::cout; |
-namespace po = boost::program_options; |
+void hello() |
+{ |
+ std::cout << "Yes we don't have no libboost_thread today." << std::endl; |
+} |
int main(int argc, char *argv[]) |
{ |
@@ -22,26 +22,8 @@ |
std::cout << "ERROR: Boost is compiled as dynamically linked. We're expecting statically linked" << std::endl; |
#endif |
- // test program_options |
- po::options_description desc( "boost_testcompile options" ); |
- desc.add_options() |
- |
- ( "help,h", "prints this help message" ) |
- |
- ; |
- |
- po::variables_map vm; |
- po::store( po::command_line_parser( argc, argv ). |
- options( desc ).run(), vm ); |
- po::notify( vm ); |
- |
- //-************************************************************************* |
- |
- if ( vm.count( "help" ) ) |
- { |
- std::cout << desc << std::endl; |
- return -1; |
- } |
+ boost::thread bt( hello ); |
+ bt.join(); |
return 0; |
} |