Boost C++ Libraries: Ticket #254: time_from_string link problem https://svn.boost.org/trac10/ticket/254 <pre class="wiki">I'm using libboost-date-time1.31.0 I have a link error when trying this code example : std::string ts("2002-01-20 23:59:59.000"); boost::posix_time::ptime t(boost::posix_time::time_from_string(ts)); Linking prog ... database.o(.gnu.linkonce.t._ZN5boost9date_time19month_str_to_ushortINS_9gregorian10greg_monthEEEtSs+0x119): dans la fonction « unsigned short boost::date_time::month_str_to_ushort&lt;boost::gregorian::greg_month&gt;(std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;)»: : undefined reference to `boost::gregorian::greg_month::get_month_map_ptr()' collect2: ld a retourné 1 code d'état d'exécution source : http://www.boost.org/libs/date_time/doc/class_ptime.html ptime time_from_string(const std::string&amp;) From delimited string. std::string ts("2002-01-20 23:59:59.000"); ptime t(time_from_string(ts)) thank you al_x7@hotmail.com </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/254 Trac 1.4.3 az_sw_dude Sat, 17 Apr 2004 21:32:22 GMT <link>https://svn.boost.org/trac10/ticket/254#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/254#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=579686 I suspect you are not linking against the library. With g++ this would look like: g++ -I $(BOOST_ROOT) my_date_code.cpp -L . -l boost_date_time-gcc-s-1_31 where you have libboost_date_time-gcc-s-1_31.a in the local directory. Of course you need to build the library first if you haven't already. See documentation for instructions. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>andrasiel</dc:creator> <pubDate>Tue, 20 Apr 2004 10:43:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/254#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/254#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=1021845 I apologize; there is no bug my linking option was incomplete... very sorry </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>az_sw_dude</dc:creator> <pubDate>Tue, 20 Apr 2004 10:52:15 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/254#comment:3 https://svn.boost.org/trac10/ticket/254#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket