Guest User

Untitled

a guest
Jun 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. LIBNAME=boost_date_time
  2. LIBSYMBOL=_ZN5boost9gregorian9bad_monthD0Ev
  3.  
  4. PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,,
  5. [
  6. AC_MSG_ERROR([lib $LIBNAME not found. Try: sudo apt-get install libboost-dev])
  7. ],[
  8. -lstdc++ -ldl
  9. ])
  10.  
  11. LIBNAME=boost_date_time
  12. AC_MSG_CHECKING([for BOOST])
  13. AC_TRY_COMPILE(
  14. [
  15. #include "boost/date_time/gregorian/greg_month.hpp"
  16. ],
  17. [
  18. boost::gregorian::bad_month* bm = new boost::gregorian::bad_month;
  19. ],
  20. [
  21. AC_MSG_RESULT(yes)
  22. ],
  23. [
  24. AC_MSG_ERROR([lib $LIBNAME not found. Try: sudo apt-get install libboost-dev])
  25. ])
  26.  
  27. extern "C"
  28. void foo(int bar)
  29. {
  30. ...
  31. }
  32.  
  33. #include "boost/date_time/gregorian/greg_month.hpp"
  34. int main( int argc, const char* argv[] )
  35. {
  36. boost::gregorian::bad_month* xxxjunk = new boost::gregorian::bad_month;
  37. return 0;
  38. }
  39.  
  40. nm -C | grep "boost::gregorian::bad_month"
Add Comment
Please, Sign In to add comment