Dear FSL users,
I would like to add a few lines of code to avwstats.c so that it will print
the list of all active voxels to a text file. Writing the code is not hard,
but I am having much difficulty compiling even the original file. I have
followed the instruction on
http://www.fmrib.ox.ac.uk/fsl/fsl/compiling.html.
Specifically, I have
GNU Make 3.80
install (coreutils) 5.2.1
gcc (GCC) 3.4.6
tcl8.4
tk8.4
Tix8.1.4
$FSLMACHTYPE is i386-redhat-linux-gcc3.4.6
and files inside $FSLDIR/config/$FSLMACHTYPE match local paths
I was wondering if you could please give me some hints on how I could
compile this one file.
Thanks.
paymon
ps. Here is part of the the error log:
make[1]: Entering directory `/usr/local/fsl/src/avwutils'
make[2]: Entering directory `/usr/local/fsl/src/avwutils'
c++ -Wall -ansi -pedantic -Wno-deprecated -march=pentium -mcpu=pentium
-O3 -fexpensive-optimizations -march=pentium -mcpu=pentium
-I/usr/local/fsl/extras/include/newmat -I/usr/local/fsl/extras/include/zlib
-I. -I/include -I/usr/local/fsl/include -L/usr/local/fsl/extras/lib
-L/usr/local/fsl/extras/lib -L. -L/lib -L/usr/local/fsl/lib -o avwstats++
avwstats++.o -lnewimage -lmiscmaths -lprob -lfslio -lnewmat -lutils
-lniftiio -lznz -lm -lz
/usr/local/fsl/lib/libnewimage.a(lazy.o)(.gnu.linkonce.t._ZNSt8_Rb_treeIjSt4pairIKjbESt10_Select1stIS2_ESt4lessIjESaIS2_EE5eraseESt17_Rb_tree_iteratorIS2_RS2_PS2_ESC_+0xcc):
In function `std::_Rb_tree<unsigned int, std::pair<unsigned int const,
bool>, std::_Select1st<std::pair<unsigned int const, bool> >,
std::less<unsigned int>, std::allocator<std::pair<unsigned int const, bool>
> >::erase(std::_Rb_tree_iterator<std::pair<unsigned int const, bool>,
std::pair<unsigned int const, bool>&, std::pair<unsigned int const, bool>*>,
std::_Rb_tree_iterator<std::pair<unsigned int const, bool>,
std::pair<unsigned int const, bool>&, std::pair<unsigned int const, bool>*>)':
: undefined reference to `std::__default_alloc_template<true,
0>::deallocate(void*, unsigned int)'
.
.
.
/usr/local/fsl/lib/libmiscmaths.a(kernel.o)(.text+0x1d49): more undefined
references to `std::__default_alloc_template<true, 0>::deallocate(void*,
unsigned int)' follow
/usr/local/fsl/lib/libmiscmaths.a(kernel.o)(.gnu.linkonce.t._ZNSt14__simple_allocISt13_Rb_tree_nodeIPN9MISCMATHS13kernelstorageEESt24__default_alloc_templateILb1ELi0EEE8allocateEj+0x1d):
In function
`std::__simple_alloc<std::_Rb_tree_node<MISCMATHS::kernelstorage*>,
std::__default_alloc_template<true, 0> >::allocate(unsigned int)':
: undefined reference to `std::__default_alloc_template<true,
0>::allocate(unsigned int)'
collect2: ld returned 1 exit status
make[2]: *** [avwstats++] Error 1
make[2]: Leaving directory `/usr/local/fsl/src/avwutils'
make[1]: *** [master-install-script] Error 2
make[1]: Leaving directory `/usr/local/fsl/src/avwutils'
make: *** [install] Error 2
|