求救~~~~~~~~~~~

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
kingcrimson
帖子: 85
注册时间: 2007-11-27 17:08

求救~~~~~~~~~~~

#1

帖子 kingcrimson » 2010-09-16 16:16

这是杀错??

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
}
头像
123rps
帖子: 189
注册时间: 2009-04-30 16:17

Re: 求救~~~~~~~~~~~

#2

帖子 123rps » 2010-09-16 20:10

这个应该发到c++论坛吧。。。
:em20
东西大街南北走
出门碰到人咬狗
搬起狗来砸砖头
却被砖头咬了手
OpenOffice.org Math公式编辑器完全教程
kingcrimson
帖子: 85
注册时间: 2007-11-27 17:08

Re: 求救~~~~~~~~~~~

#3

帖子 kingcrimson » 2010-09-16 20:45

终于有人回应了。我很奇怪,这个源码包,在编译安装都没问题。我先make,在make install。在shell下编译全部通过。为何我用anjan(名字有偏差)建了个C++工程,到这就编译不过了。明明声明了matrix类。它还是不认~~~咋回事呢??
回复