这是杀错??
matrixbk.cc:88: error: expected initializer before ‘<’ token
代吗如下
杀错??
87 template <class Type>
88 void matrix<Type>::allocate(uint numlines, uint numpixels) // allocator
89 {
#ifdef __DEBUGMAT1
if (numlines==0 || numpixels==0)
{
matERROR << "Allocation impossible: size (l,p): "
<< numlines << ", " << numpixels;
matERROR.print();
}
#endif
nrows = numlines;
ncols = numpixels;
nsize = numlines*numpixels;
// Bert Kampes, 07-Apr-2005: try/catch should work by now...
try
{
data = new Type*[numlines];// get memory : make linear array of pointers
}
求救~~~~~~~~~~~
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 85
- 注册时间: 2007-11-27 17:08
- 123rps
- 帖子: 189
- 注册时间: 2009-04-30 16:17
-
- 帖子: 85
- 注册时间: 2007-11-27 17:08
Re: 求救~~~~~~~~~~~
终于有人回应了。我很奇怪,这个源码包,在编译安装都没问题。我先make,在make install。在shell下编译全部通过。为何我用anjan(名字有偏差)建了个C++工程,到这就编译不过了。明明声明了matrix类。它还是不认~~~咋回事呢??