- From: James Thornton <thornton@cs.ecs.baylor.edu>
- Date: Fri, 14 Feb 2003 04:18:18 -0600
- To: www-lib@w3.org
I keep getting "undefined reference" errors...how can I fix this? Thanks. c++ -g -Wall -Wno-sign-compare -O3 -o bin/RunHandlers obj-2.96/Utils.o obj-2.96/Url.o obj-2.96/NetworkFeeder.o obj-2.96/WebCatFeeder.o obj-2.96/FileFeeder.o obj-2.96/bigfile.o obj-2.96/my_utility.o obj-2.96/confloader.o obj-2.96/confTable.o obj-2.96/process.o obj-2.96/url2hash.o obj-2.96/urlHash.o obj-2.96/normalize.o obj-2.96/Crc64.o obj-2.96/linkparser.o obj-2.96/urlwriter.o obj-2.96/offset-handler.o obj-2.96/offsetwriter.o obj-2.96/pagelength-handler.o obj-2.96/pagelengthwriter.o obj-2.96/html_parser.o obj-2.96/url.o obj-2.96/HTML2Plain.o obj-2.96/linkswriter.o obj-2.96/wordstats-handler.o -lwwwcore -lwwwutils -lz -lpthread obj-2.96/process.o: In function `_Rb_tree<basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >, pair<basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > const, basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > >, _Select1st<pair<basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > const, basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > > >, less<basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > >, allocator<basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > > >::_M_erase(_Rb_tree_node<pair<basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > const, basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > > > *)': /usr/include/g++-3/stl_vector.h(.text+0x3d): undefined reference to `HTMemory_free(void *)' /usr/include/g++-3/stl_vector.h(.text+0x6d): undefined reference to `strncasecomp(char const *, char const *, int)' /usr/include/g++-3/stl_vector.h(.text+0xb9): undefined reference to `strncasecomp(char const *, char const *, int)' /usr/include/g++-3/stl_vector.h(.text+0xe4): undefined reference to `HTMemory_malloc(unsigned int)' /usr/include/g++-3/stl_vector.h(.text+0x104): undefined reference to `HTMemory_outofmem(char *, char *, unsigned long)' collect2: ld returned 1 exit status make: *** [bin/RunHandlers] Error 1 my libwww-config output.... [nsadmin@roam WebBase]$ libwww-config --version 5.4.0 [nsadmin@roam WebBase]$ libwww-config --cflags -I/usr/local/include -I/usr/local/include/w3c-libwww -DHAVE_CONFIG_H [nsadmin@roam WebBase]$ libwww-config --libs -L/usr/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwzip -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lz
Received on Friday, 14 February 2003 05:19:06 UTC