id summary reporter owner description type status milestone component version severity resolution keywords cc 135 link errors with Date_Time library nobody az_sw_dude "{{{ 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, __default_allo c_template >::alloc(unsigned int, bool)': /usr/include/g++-3/std/bastring.h (.boost::date_time::date >: :gnu.linkonce.t.year_month_day(void) const+0x15): undefined reference to `boost: :date_time::gregorian_calendar_base , unsigned long>::from_day_number(unsigned long)' /usr/include/g++-3/std/bastring.h (.boost::date_time::date >: :gnu.linkonce.t. (boost::date_time::year_month_day_base const &)+0x12): un defined reference to `boost::date_time::gregorian_calendar_base, unsigned long>::day_number(boost::date_time::year_ month_day_base const &)' collect2: ld returned 1 exit status make: *** [mccps] Error 1 But my program still can not build. Help me! Thanks. }}}" Support Requests closed None None Fixed