gcc 3.4 Regex problem

Hello All,

I have been using String.h with gcc 2.95. Now I have upgraded to gcc 3.4. The support for String.h has been removed and I believe Regex.h support is also not inbuilt. So I tried to build my own library for String.h. I had to use Regex.h and rx.h for a succesful library compilation. The name of library is libstring.a and is located in /usr/local/lib.
On linking it in the code and doing a make I get the unreferenced usage for few functions from rx.cc. I dont know why, Please help in this:

g++ -I./ -I../../../include -I/usr/local/include/g++-3 -I/usr/local/include/g+
+-3/std -I/usr/local/include/g++ -I/usr/local/include/g++/std -I../../../src/t
ools/qdbm -D_PTHREADS -O -g -DFWDEBUG -DNRESOURCE -w -o ../../../bin/nmBackdoo
r ./NmBackdoor.o NmCmdCenter.o NmResource.o -L./ -L../../../lib -lutil++ -lco
mm++ -laux++ -lsync++ -lgcc -lstring -lstdc++ -lxnet -liberty -lrx -lpthread
Undefined first referenced
symbol in file
re_compile_fastmap(re_pattern_buffer*) /usr/local/lib/gcc/sparc-sun-solari
s2.8/3.4.2/../../../libstring.a(Regex.o)
operator<<(std::basic_ostream<char, std::char_traits<char> >&, SubString const
&)NmCmdCenter.o
ostream::operator<<(char const*) /usr/local/lib/gcc/sparc-sun-solaris2.8/3.
4.2/../../../libstring.a(String.o)
re_match_2(re_pattern_buffer*, char const*, int, char const*, int, int, re_reg
isters*, int)/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.2/../../../libstring.
a(Regex.o)
re_compile_pattern(char const*, int, re_pattern_buffer*)/usr/local/lib/gcc/spa
rc-sun-solaris2.8/3.4.2/../../../libstring.a(Regex.o)
ws(istream&) /usr/local/lib/gcc/sparc-sun-solaris2.8/3.
4.2/../../../libstring.a(String.o)
readline(std::basic_istream<char, std::char_traits<char> >&, String&, char, in
t)NmCmdCenter.o
re_compile_pattern(char const*, int, re_pattern_buffer*)/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.2/../../../libstring.a(Regex.o)
ws(istream&) /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.2/../../../libstring.a(String.o)
readline(std::basic_istream<char, std::char_traits<char> >&, String&, char, int)NmCmdCenter.o
_IO_getc /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.2/../../../libstring.a(String.o)
_IO_putc /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.2/../../../libstring.a(String.o)
re_search_2(re_pattern_buffer*, char const*, int, char const*, int, int, int, re_registers*, int)/usr/local/lib/gcc/sparc-sun-solari
s2.8/3.4.2/../../../libstring.a(Regex.o)
ld: fatal: Symbol referencing errors. No output written to ../../../bin/nmBackdoor
collect2: ld returned 1 exit status
make: *** [../../../bin/nmBackdoor] Error 1

Regards,
manish