A
Adam Coutee
Hello,
I am trying to compile some code that includes third party header files
(part of a library). I keep getting an error on the templates they've
defined. An example error follows:
"/usr/local/SensAble/GHOST/v31/include/gstGenericMatrix.h", line 115:
error(1424):
constant "DIMM" is not used in declaring the parameter types of
function template "gstGenericMatrix::mulPointMatrix"
template <class PT1, class PT2, class MAT, int DIMM, int DIMN>
The code excerpt that generates this error is:
template <class PT1, class PT2, class MAT, int DIMM, int DIMN>
inline void mulPointMatrix(PT1 & res,
const PT2 & p,
const MAT & m)
{
for (int i = 0; i < DIMN; ++i)
{
res = 0;
for (int j = 0; j < DIMM; ++j)
{
res += p[j] * m[j];
}
}
}
Does anyone know what the problem is? As mentioned, this is a header file
for a third-party library (that I don't have source code for). Apparently,
they built their applications with MIPSpro 7.3. I am using MIPSpro 7.2.1 on
an Octane running Irix 6.5.19f. Is this something that is allowed in MIPSpro
7.3, but not MIPSpro 7.2.1?
Thanks for any help,
Adam
I am trying to compile some code that includes third party header files
(part of a library). I keep getting an error on the templates they've
defined. An example error follows:
"/usr/local/SensAble/GHOST/v31/include/gstGenericMatrix.h", line 115:
error(1424):
constant "DIMM" is not used in declaring the parameter types of
function template "gstGenericMatrix::mulPointMatrix"
template <class PT1, class PT2, class MAT, int DIMM, int DIMN>
The code excerpt that generates this error is:
template <class PT1, class PT2, class MAT, int DIMM, int DIMN>
inline void mulPointMatrix(PT1 & res,
const PT2 & p,
const MAT & m)
{
for (int i = 0; i < DIMN; ++i)
{
res = 0;
for (int j = 0; j < DIMM; ++j)
{
res += p[j] * m[j];
}
}
}
Does anyone know what the problem is? As mentioned, this is a header file
for a third-party library (that I don't have source code for). Apparently,
they built their applications with MIPSpro 7.3. I am using MIPSpro 7.2.1 on
an Octane running Irix 6.5.19f. Is this something that is allowed in MIPSpro
7.3, but not MIPSpro 7.2.1?
Thanks for any help,
Adam