Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LIBNAME=boost_date_time
- LIBSYMBOL=_ZN5boost9gregorian9bad_monthD0Ev
- PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,,
- [
- AC_MSG_ERROR([lib $LIBNAME not found. Try: sudo apt-get install libboost-dev])
- ],[
- -lstdc++ -ldl
- ])
- LIBNAME=boost_date_time
- AC_MSG_CHECKING([for BOOST])
- AC_TRY_COMPILE(
- [
- #include "boost/date_time/gregorian/greg_month.hpp"
- ],
- [
- boost::gregorian::bad_month* bm = new boost::gregorian::bad_month;
- ],
- [
- AC_MSG_RESULT(yes)
- ],
- [
- AC_MSG_ERROR([lib $LIBNAME not found. Try: sudo apt-get install libboost-dev])
- ])
- extern "C"
- void foo(int bar)
- {
- ...
- }
- #include "boost/date_time/gregorian/greg_month.hpp"
- int main( int argc, const char* argv[] )
- {
- boost::gregorian::bad_month* xxxjunk = new boost::gregorian::bad_month;
- return 0;
- }
- nm -C | grep "boost::gregorian::bad_month"
Add Comment
Please, Sign In to add comment