From: James E. <em...@sy...> - 2001-11-22 18:46:04
|
Here's the solution (in case anyone is having the same problem): ./configure --disable-static --prefix=<dir> in the libtool script, change LD="/usr/ucb/ld" to LD="CC -Kpic" Regards, James James Emery wrote: > Hi, > > I am trying to compile/link the log4cpp package using the SunWorkshop > compiler (CC) on a Solaris 7 machine. The library builds, but the > testmain code fails to link properly. There are several error messages > relating to undefined symbols. This appears to be a problem with the > compiler not generating template code in the library. The CC compiler > seems to be quite complicated when it comes to handling templates. > > Has anyone been able to successfully build a usable log4cpp library > using SunW's CC compiler ? > > Any help that you can provide would be most appreciated. > > Thanks, > James > > partial error message: > > ild: (undefined symbol) __type_1 > std::copy<std::deque<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > > > >::const_iterator,std::back_insert_iterator<std::deque<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > > > > >(__type_0,__type_0,__type_1) -- referenced in > ../src/.libs/liblog4cpp.so > > _______________________________________________ > Log4cpp-devel mailing list > Log...@li... > https://lists.sourceforge.net/lists/listinfo/log4cpp-devel |