[antlr-interest] problems on linking

Sheng Wang shengwang08 at yahoo.com
Sat Feb 5 15:33:58 PST 2005


Hi, 

I run into some problems when I try to link the
compiled files that generated by ANTLR.  I am using
"Cpp" option. GCC version is 3.4.2.

g++ -g -o myparser *.o /usr/lib/libantlr.a
/usr/lib/libantlr.a(BitSet.o)(.text+0xfa): In function
`antlr::BitSet::BitSet(unsigned int)':
: undefined reference to
`std::__default_alloc_template<true, 0>::_S_force_new'
/usr/lib/libantlr.a(BitSet.o)(.text+0x127): In
function `antlr::BitSet::BitSet(unsigned int)':
: undefined reference to
`std::__default_alloc_template<true,
0>::_S_freelist_index(unsigned int)'
/usr/lib/libantlr.a(BitSet.o)(.text+0x134): In
function `antlr::BitSet::BitSet(unsigned int)':
....

Any insights?

Thanks a lot!

Sheng


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250


More information about the antlr-interest mailing list