Boost C++ Libraries: Ticket #135: link errors with Date_Time library https://svn.boost.org/trac10/ticket/135 <pre class="wiki">I use boost date_time library in my program. And I fall in trouble. I can not build my program, there occurs some link errors. I'v ran bjam in boost_1_29_0/libs/date_time/build/ , and get a lib file in boost_1_29_0/libs/date_time/build/bin/libboost_date_tim e.a/gcc/debug/ . I copy it to my lib directory, and then build my program, the link errors seem less, as the list. All these occurs on Redhat Linux 7.1, with GCC 2.96. And the makefile is generated by Kdevelop 2.0. g++ -O0 -g3 -Wall -I/usr/local/include - I/usr/include/mysql -o .libs/mccps argpa rse.o main.o -L/usr/local/lib /usr/local/lib/libsqlplus.so - L/usr/lib/mysql -lz -lmysqlclient -lboost_date_time -Wl,--rpath - Wl,/usr/local/lib main.o: In function `basic_string&lt;char, string_char_traits&lt;char&gt;, __default_allo c_template&lt;true, 0&gt; &gt;::alloc(unsigned int, bool)': /usr/include/g++-3/std/bastring.h (.boost::date_time::date&lt;boost::gregorian::date , boost::gregorian::gregorian_calendar, boost::date_time::date_duration&lt;long&gt; &gt;: :gnu.linkonce.t.year_month_day(void) const+0x15): undefined reference to `boost: :date_time::gregorian_calendar_base&lt;boost::date_time:: year_month_day_base&lt;boost: :gregorian::greg_year, boost::gregorian::greg_month, boost::gregorian::greg_day&gt; , unsigned long&gt;::from_day_number(unsigned long)' /usr/include/g++-3/std/bastring.h (.boost::date_time::date&lt;boost::gregorian::date , boost::gregorian::gregorian_calendar, boost::date_time::date_duration&lt;long&gt; &gt;: :gnu.linkonce.t. (boost::date_time::year_month_day_base&lt;boost::gregori an::greg_ye ar, boost::gregorian::greg_month, boost::gregorian::greg_day&gt; const &amp;)+0x12): un defined reference to `boost::date_time::gregorian_calendar_base&lt;boost::date _time ::year_month_day_base&lt;boost::gregorian::greg_year, boost::gregorian::greg_month, boost::gregorian::greg_day&gt;, unsigned long&gt;::day_number(boost::date_time::year_ month_day_base&lt;boost::gregorian::greg_year, boost::gregorian::greg_month, boost: :gregorian::greg_day&gt; const &amp;)' collect2: ld returned 1 exit status make: *** [mccps] Error 1 But my program still can not build. Help me! Thanks. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/135 Trac 1.4.3 nobody Fri, 28 Feb 2003 21:01:50 GMT <link>https://svn.boost.org/trac10/ticket/135#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/135#comment:1</guid> <description> <pre class="wiki">Logged In: NO Look for DATE_TIME_INLINE </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>az_sw_dude</dc:creator> <pubDate>Tue, 23 Nov 2004 12:36:25 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/135#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/135#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=579686 Sorry for the slow response on this -- somehow didn't see it. But as the followup indicates in 1.29 DATE_TIME_INLINE was probably at the root of the problem. This has been removed in later releases. Closing this request... Jeff </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>az_sw_dude</dc:creator> <pubDate>Tue, 23 Nov 2004 12:37:10 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/135#comment:3 https://svn.boost.org/trac10/ticket/135#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket