Configure Error Boost Smart Pointer Library Not Found
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring
Boost_system Library
developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask shared_ptr is not a member of std Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join could not link against boost_program_options them; it only takes a minute: Sign up Where is shared_ptr? up vote 77 down vote favorite 20 I am so frustrated right now after several hours trying to find where shared_ptr is located. None of the examples I
Boost/shared_ptr.hpp No Such File
see show complete code to include the headers for shared_ptr (and working). Simply stating std, tr1 and
Error Shared_ptr Was Not Declared In This Scope
version dependant" --> that's why I did not state my environment --> therefore probably why it was so difficult for me to find it. I am working on MSVS2008. EDIT 2: I don't know why, but I was including [memory] and [boost/tr1/memory.hpp] and [boost/tr1/tr1/memory] while looking everywhere for the shared_ptr.. of course, i couldn't. Thanks for all the responses. c++ boost c++11 shared-ptr smart-pointers share|improve this question edited Mar 9 '12 at 3:01 James McNellis 244k46708846 asked May 27 '10 at 2:58 Jake 4,1031147115 3 probably it will be helpful if you can state your setup correctly, like what compiler and boost version/installation path –YeenFei May 27 '10 at 3:03 5 Unless you're on C++0x, shared_ptr is not part of the standard. It's so common though that some will treat it as standard even though it's not in yet. –Billy ONeal May 27 '10 at 3:03 4 How do you think we should answer this question without knowing whether your environment is GCC for a 7.5bit dishwasher chip, a 128bit mainframe's proprietary compiler, or XCode's version of GCC? –sbi May 27 '10 at 6:45 Just to add some info about the problem I faced.. If you want to compile with c++0x standard you need to add "-std=c++0x" as argument of g++. –Mital Vora Nov 6 '11 at 3:20 +1000 ! Examples on the net don't provide this critic
template Introduction Best Practices Synopsis Members Free Functions Example Handle/Body Idiom Thread Safety Frequently Asked Questions Smart Pointer Timings Programming Techniques Introduction The shared_ptr class template stores a pointer to a dynamically boost/shared_ptr.hpp not found allocated object, typically with a C++ new-expression. The object pointed to is guaranteed
Checking For Exit In No
to be deleted when the last shared_ptr pointing to it is destroyed or reset. Example:shared_ptr
Support Search GitHub This repository Watch https://github.com/wojdyr/fityk/blob/master/configure.ac 19 Star 67 Fork 19 wojdyr/fityk Code Issues https://github.com/openstreetmap/osm2pgsql/issues/256 1 Pull requests 0 Projects 0 Wiki Pulse Graphs Permalink Branch: master Switch branches/tags Branches Tags master Nothing to show v1.3.0 v1.2.9 v1.2.1 v1.2.0 v1.1.1 v1.1.0 v1.0.2 v1.0.1 v1.0.0 Nothing to show Find file Copy not found path fityk/configure.ac Fetching contributors… Cannot retrieve contributors at this time Raw Blame History 208 lines (166 sloc) 6.77 KB # Process this file with autoconf to produce a configure script. AC_INIT([fityk],[1.3.0]) LIBRARY_VERSION_FLAG="-version-info 4:0:0" AC_CONFIG_SRCDIR([fityk/voigt.h]) AC_CONFIG_AUX_DIR(build-aux) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE([1.11 foreign subdir-objects silent-rules -Wall]) AC_PROG_CC AC_PROG_CXX configure error boost AM_PROG_CC_C_O m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) LT_INIT([disable-static win32-dll]) AC_ARG_ENABLE(GUI, AS_HELP_STRING([--disable-GUI], [do not build the GUI])) AC_ARG_ENABLE(CLI, AS_HELP_STRING([--disable-CLI], [do not build the CLI])) AC_ARG_ENABLE(powdifpat, AS_HELP_STRING([--enable-powdifpat], [build (not working) powdifpat program])) AC_ARG_ENABLE(python, AS_HELP_STRING([--enable-python], [build Python bindings to libfityk])) #AC_ARG_ENABLE(perl, AS_HELP_STRING([--enable-perl], # [build Perl bindings to libfityk])) AC_ARG_ENABLE(nlopt, AS_HELP_STRING([--enable-nlopt], [use NLopt library])) # this option is handled in m4/readline.m4 AC_ARG_WITH(readline, AS_HELP_STRING([--without-readline], [do not use the GNU readline library for cfityk])) AC_ARG_WITH(options, AS_HELP_STRING([--with-options=OPTIONS], [options appended to CC, CXX and LD (e.g. -isysroot)]), [UNIV_OPTION=$withval]) AM_OPTIONS_WXCONFIG AC_MSG_CHECKING([for MinGW compiler]) case "$host_os" in mingw*) windows=yes ;; *) windows=no ;; esac AC_MSG_RESULT([$windows]) AM_CONDITIONAL(OS_WIN32, test "$windows" = "yes") if test "$windows" = "yes"; then AC_CHECK_TOOL(RC, windres) if test "x$RC" = "x"; then AC_MSG_ERROR([Required resource tool 'windres' not found on PATH.]) fi fi if test "x$with_options" != "x"; then CC="$CC $with_options" C
Support Search GitHub This repository Watch 48 Star 405 Fork 197 openstreetmap/osm2pgsql Code Issues 109 Pull requests 10 Projects 0 Pulse Graphs New issue cannot compile osm2pgsql having a non-thread boost lib on the system #256 Closed thbeutin opened this Issue Jan 18, 2015 · 1 comment Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants thbeutin commented Jan 18, 2015 configure option "--with-boost=no" results in: checking whether the Boost::System library is available... yes configure: error: Could not find a version of the library! configure options "--with-boost=yes --without-boost-thread" let's configure run smoothly, but the compile fails: ./.libs/libosm2pgsql.a(osmdata.o): In function `boost::thread::start_thread()': /usr/include/boost/thread/detail/thread.hpp:180: undefined reference to `boost::thread::start_thread_noexcept()' ./.libs/libosm2pgsql.a(osmdata.o): In function `boost::detail::thread_data