Hi
I will be upgrading the O/S of our Altix to SLES10.
The GNU compiler for this version will be 4.1.2
In building FSL 3.3.6 on a trial host with SLES10 / GNU 4.1.2 I am
having a compilation error.
Many classes fail to build with the same error, e.g.
cslab8:~/neil/fsl/3.3.6/gnu/built-on-cslab # cd src/miscmaths/
cslab8:~/neil/fsl/3.3.6/gnu/built-on-cslab/src/miscmaths # make
c++ -Wall -ansi -pedantic -O3 -fexpensive-optimizations -I/root/
neil/fsl/3.3.6/gnu/built-on-cslab/extras/include/newmat -I/root/neil/
fsl/3.3.6/gnu/built-on-cslab/extras/include/libprob -I/root/neil/fsl/
3.3.6/gnu/built-on-cslab/extras/include/zlib -I. -I/root/neil/fsl/
3.3.6/gnu/built-on-cslab/include -I/root/neil/fsl/3.3.6/gnu/built-on-
cslab/include -c -o miscmaths.o miscmaths.cc
miscmaths.h: In function ‘float MISCMATHS::dot(const
NEWMAT::ColumnVector&, const NEWMAT::ColumnVector&)’:
miscmaths.h:171: error: ‘SP’ was not declared in this scope
miscmaths.cc: In function ‘NEWMAT::ReturnMatrixX MISCMATHS::corrcoef
(const NEWMAT::Matrix&, int)’:
miscmaths.cc:1725: error: ‘SP’ was not declared in this scope
miscmaths.cc: In function ‘void MISCMATHS::ols(const NEWMAT::Matrix&,
const NEWMAT::Matrix&, const NEWMAT::Matrix&, NEWMAT::Matrix&,
NEWMAT::Matrix&)’:
miscmaths.cc:1949: error: ‘SP’ was not declared in this scope
The SP global function from newmat is not being successfully
declared. I have looked the includes
and scoping and to zeroth order it looks ok....
I have no problem building FSL V 4.0 with this machine and GNU 4.1.2
so it would appear to be a coding
issue in V 3.3.6 that has been resolved since.
I need to preserve V 3.3.6 as users like to continue to use the same
version of FSL to process
a project so that they are certain of processing consistency.
thanks
Neil
|