- Joined
- Sep 3, 2007
- Messages
- 1
- Reaction score
- 0
Hi,
Could anyone please help. I ran into "linker error" when using template with Bloodshed compiler. There was a similiar problem reported by someone and some folks suggest to reorder the libraries. I'm not sure how to do that. Here are the linker errors in the same order as the methods appear in the code,
TEST4.o(.text+0x178):TEST4.CPP: undefined reference to `List<char>::List(int)'
TEST4.o(.text+0x3f1):TEST4.CPP: undefined reference to `List<char>::showStructure() const'
TEST4.o(.text+0x4ef):TEST4.CPP: undefined reference to `List<char>::insert(char const&)'
TEST4.o(.text+0x52a):TEST4.CPP: undefined reference to `List<char>::remove()'
TEST4.o(.text+0x58e):TEST4.CPP: undefined reference to `List<char>::replace(char const&)'
TEST4.o(.text+0x5a5):TEST4.CPP: undefined reference to `List<char>::getCursor() const'
TEST4.o(.text+0x5f5):TEST4.CPP: undefined reference to `List<char>::gotoBeginning()'
TEST4.o(.text+0x664):TEST4.CPP: undefined reference to `List<char>::gotoEnd()'
TEST4.o(.text+0x6d3):TEST4.CPP: undefined reference to `List<char>::gotoNext()'
TEST4.o(.text+0x752):TEST4.CPP: undefined reference to `List<char>::gotoPrior()'
TEST4.o(.text+0x7f5):TEST4.CPP: undefined reference to `List<char>::clear()'
TEST4.o(.text+0x80c):TEST4.CPP: undefined reference to `List<char>::empty() const'
TEST4.o(.text+0x87b):TEST4.CPP: undefined reference to `List<char>::full() const'
TEST4.o(.text+0x920):TEST4.CPP: undefined reference to `List<char>::~List()'
TEST4.o(.text+0x94a):TEST4.CPP: undefined reference to `List<char>::~List()'
Thank you very much,
Tony
Could anyone please help. I ran into "linker error" when using template with Bloodshed compiler. There was a similiar problem reported by someone and some folks suggest to reorder the libraries. I'm not sure how to do that. Here are the linker errors in the same order as the methods appear in the code,
TEST4.o(.text+0x178):TEST4.CPP: undefined reference to `List<char>::List(int)'
TEST4.o(.text+0x3f1):TEST4.CPP: undefined reference to `List<char>::showStructure() const'
TEST4.o(.text+0x4ef):TEST4.CPP: undefined reference to `List<char>::insert(char const&)'
TEST4.o(.text+0x52a):TEST4.CPP: undefined reference to `List<char>::remove()'
TEST4.o(.text+0x58e):TEST4.CPP: undefined reference to `List<char>::replace(char const&)'
TEST4.o(.text+0x5a5):TEST4.CPP: undefined reference to `List<char>::getCursor() const'
TEST4.o(.text+0x5f5):TEST4.CPP: undefined reference to `List<char>::gotoBeginning()'
TEST4.o(.text+0x664):TEST4.CPP: undefined reference to `List<char>::gotoEnd()'
TEST4.o(.text+0x6d3):TEST4.CPP: undefined reference to `List<char>::gotoNext()'
TEST4.o(.text+0x752):TEST4.CPP: undefined reference to `List<char>::gotoPrior()'
TEST4.o(.text+0x7f5):TEST4.CPP: undefined reference to `List<char>::clear()'
TEST4.o(.text+0x80c):TEST4.CPP: undefined reference to `List<char>::empty() const'
TEST4.o(.text+0x87b):TEST4.CPP: undefined reference to `List<char>::full() const'
TEST4.o(.text+0x920):TEST4.CPP: undefined reference to `List<char>::~List()'
TEST4.o(.text+0x94a):TEST4.CPP: undefined reference to `List<char>::~List()'
Thank you very much,
Tony