- 论坛徽章:
- 0
|
系统:solaris 8
编译器:Forte Developer 6 (Sun WorkShop 6) update 2
CC后报
ild: (undefined symbol) void std::vector<T,std::allocator<T>; >;::__insert_aux(T*,const T& -- referenced in the text segment of ./src/manager/TManager.o
其中的“T”是我自己写的一个class。我自己怀疑是在TManager.cpp中用了:
vector<T>; a;
T b;
a.push_back(b);
导致的?
查了forte的lib ref ,vector的vec_0251.htm,在Description中有一段:
Any type used for the template parameter T must provide the following (where T is the type, t is a value of T and u is a const value of T):
Copy constructors T(t) and T(u)
Destructor t.~T()
Address of &t and &u yielding T* and const T* respectively
Assignment t = a where a is a (possibly const) value of T
我不知道“Address of”一行是什么含义?让我写什么函数?
我在sun的论坛上找到些提类似问题的帖子,也没有人回。
谢谢各位 |
|