L
lionqiang
I am trying to compile a package protclust-1.0.1 which is written by
someone by in 2003.
The run of ./configure is ok without error. But when I try to compile
it, 'make' stops with following error message.
It seems there is a type mismatch between the type used in the program
and the basic c++ string type ...
Or I am missing some point ??
All the programs have passed the syntax check using 'gcc -fsyntax-only
-Wall'.
Note: to compile this package you also need another package called
xmlio-1.0.0 .
many thanks,
The following the error message I got after call 'make'.
---------------------------------------------------------
/bin/sh ../libtool --mode=link c++ -I/users/sista/qfu/local/include -
O2 -o CreateMatrix CreateMatrix.o ../Matrix/libMatrix.a ../
Clustering/libClustering.a ../Global/libGlobal.
a -L/users/sista/qfu/local/lib -lxmlio -lexpat
c++ -I/users/sista/qfu/local/include -O2 -o CreateMatrix
CreateMatrix.o ../Matrix/libMatrix.a ../Clustering/libClustering.a ../
Global/libGlobal.a -L/users/sista/qfu/local/lib /u
sers/sista/qfu/local/lib/libxmlio.so /usr/lib/libexpat.so -Wl,--rpath -
Wl,/users/sista/qfu/local/lib -Wl,--rpath -Wl,/users/sista/qfu/local/
lib
CreateMatrix.o: In function `main':
CreateMatrix.cpp.text+0x298): undefined reference to
`std::getScalingMethod(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
CreateMatrix.cpp.text+0x2cd): undefined reference to
`std::getAlignmentTool(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
.../Matrix/libMatrix.a(Matrix.o): In function `std::Matrix::save()':
Matrix.cpp.text+0x296d): undefined reference to
`std::writeSubstitutionMatrix(std::SubstitutionMatrix)'
Matrix.cpp.text+0x298f): undefined reference to
`std::writeScalingMethod(std::ScalingMethod)'
Matrix.cpp.text+0x29b1): undefined reference to
`std::writeAlignmentTool(std::AlignmentTool)'
.../Matrix/libMatrix.a(Matrix.o): In function
`std::Matrix::Matrix(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::map<std::basic_string<char,
std::allocator<std:air<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const,
std::basic_string<char, std::char_traits<char>, s
td::allocator<char> > > > >&)':
Matrix.cpp.text+0x3583): undefined reference to
`std:perator>>(std::basic_istream<char, std::char_traits<char> >&,
std::SubstitutionMatrix&)'
Matrix.cpp.text+0x3f9e): undefined reference to
`std::getScalingMethod(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
Matrix.cpp.text+0x4019): undefined reference to
`std::getAlignmentTool(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
.../Matrix/libMatrix.a(Matrix.o): In function
`std::Matrix::Matrix(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::map<std::basic_string<char,
std::allocator<std:air<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const,
std::basic_string<char, std::char_traits<char>, s
td::allocator<char> > > > >&)':
Matrix.cpp.text+0x5258): undefined reference to
`std:perator>>(std::basic_istream<char, std::char_traits<char> >&,
std::SubstitutionMatrix&)'
Matrix.cpp.text+0x5d31): undefined reference to
`std::getScalingMethod(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
Matrix.cpp.text+0x5da3): undefined reference to
`std::getAlignmentTool(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
.../Matrix/libMatrix.a(Matrix.o): In function
`std::Matrix::Matrix(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::basic_string<char, std::char_traits
<char>, std::allocator<char> > const&, std::AccessMode, unsigned
short)':
Matrix.cpp.text+0x85c1): undefined reference to
`std:perator>>(std::basic_istream<char, std::char_traits<char> >&,
std::SubstitutionMatrix&)'
Matrix.cpp.text+0x919d): undefined reference to
`std::getScalingMethod(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
Matrix.cpp.text+0x920c): undefined reference to
`std::getAlignmentTool(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
.../Matrix/libMatrix.a(Matrix.o): In function
`std::Matrix::Matrix(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::basic_string<char, std::char_traits
<char>, std::allocator<char> > const&, std::AccessMode, unsigned
short)':
Matrix.cpp.text+0xc8fa): undefined reference to
`std:perator>>(std::basic_istream<char, std::char_traits<char> >&,
std::SubstitutionMatrix&)'
Matrix.cpp.text+0xd598): undefined reference to
`std::getScalingMethod(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
Matrix.cpp.text+0xd61e): undefined reference to
`std::getAlignmentTool(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
collect2: ld returned 1 exit status
make[2]: *** [CreateMatrix] Error 1
make[2]: Leaving directory `/users/sista/qfu/tmp/protclust-1.0.1.org/
Tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/users/sista/qfu/tmp/protclust-1.0.1.org/
Tools'
make: *** [all-recursive] Error 1
someone by in 2003.
The run of ./configure is ok without error. But when I try to compile
it, 'make' stops with following error message.
It seems there is a type mismatch between the type used in the program
and the basic c++ string type ...
Or I am missing some point ??
All the programs have passed the syntax check using 'gcc -fsyntax-only
-Wall'.
Note: to compile this package you also need another package called
xmlio-1.0.0 .
many thanks,
The following the error message I got after call 'make'.
---------------------------------------------------------
/bin/sh ../libtool --mode=link c++ -I/users/sista/qfu/local/include -
O2 -o CreateMatrix CreateMatrix.o ../Matrix/libMatrix.a ../
Clustering/libClustering.a ../Global/libGlobal.
a -L/users/sista/qfu/local/lib -lxmlio -lexpat
c++ -I/users/sista/qfu/local/include -O2 -o CreateMatrix
CreateMatrix.o ../Matrix/libMatrix.a ../Clustering/libClustering.a ../
Global/libGlobal.a -L/users/sista/qfu/local/lib /u
sers/sista/qfu/local/lib/libxmlio.so /usr/lib/libexpat.so -Wl,--rpath -
Wl,/users/sista/qfu/local/lib -Wl,--rpath -Wl,/users/sista/qfu/local/
lib
CreateMatrix.o: In function `main':
CreateMatrix.cpp.text+0x298): undefined reference to
`std::getScalingMethod(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
CreateMatrix.cpp.text+0x2cd): undefined reference to
`std::getAlignmentTool(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
.../Matrix/libMatrix.a(Matrix.o): In function `std::Matrix::save()':
Matrix.cpp.text+0x296d): undefined reference to
`std::writeSubstitutionMatrix(std::SubstitutionMatrix)'
Matrix.cpp.text+0x298f): undefined reference to
`std::writeScalingMethod(std::ScalingMethod)'
Matrix.cpp.text+0x29b1): undefined reference to
`std::writeAlignmentTool(std::AlignmentTool)'
.../Matrix/libMatrix.a(Matrix.o): In function
`std::Matrix::Matrix(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::map<std::basic_string<char,
std::allocator<char> > >,std::allocator<char> > said:, std::less<std::basic_string<char, std::char_traits<char>,
std::allocator<std:air<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const,
std::basic_string<char, std::char_traits<char>, s
td::allocator<char> > > > >&)':
Matrix.cpp.text+0x3583): undefined reference to
`std:perator>>(std::basic_istream<char, std::char_traits<char> >&,
std::SubstitutionMatrix&)'
Matrix.cpp.text+0x3f9e): undefined reference to
`std::getScalingMethod(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
Matrix.cpp.text+0x4019): undefined reference to
`std::getAlignmentTool(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
.../Matrix/libMatrix.a(Matrix.o): In function
`std::Matrix::Matrix(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&, std::map<std::basic_string<char,
std::allocator<char> > >,std::allocator<char> > said:, std::less<std::basic_string<char, std::char_traits<char>,
std::allocator<std:air<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const,
std::basic_string<char, std::char_traits<char>, s
td::allocator<char> > > > >&)':
Matrix.cpp.text+0x5258): undefined reference to
`std:perator>>(std::basic_istream<char, std::char_traits<char> >&,
std::SubstitutionMatrix&)'
Matrix.cpp.text+0x5d31): undefined reference to
`std::getScalingMethod(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
Matrix.cpp.text+0x5da3): undefined reference to
`std::getAlignmentTool(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
.../Matrix/libMatrix.a(Matrix.o): In function
`std::Matrix::Matrix(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::basic_string<char, std::char_traits
<char>, std::allocator<char> > const&, std::AccessMode, unsigned
short)':
Matrix.cpp.text+0x85c1): undefined reference to
`std:perator>>(std::basic_istream<char, std::char_traits<char> >&,
std::SubstitutionMatrix&)'
Matrix.cpp.text+0x919d): undefined reference to
`std::getScalingMethod(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
Matrix.cpp.text+0x920c): undefined reference to
`std::getAlignmentTool(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
.../Matrix/libMatrix.a(Matrix.o): In function
`std::Matrix::Matrix(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::basic_string<char, std::char_traits
<char>, std::allocator<char> > const&, std::AccessMode, unsigned
short)':
Matrix.cpp.text+0xc8fa): undefined reference to
`std:perator>>(std::basic_istream<char, std::char_traits<char> >&,
std::SubstitutionMatrix&)'
Matrix.cpp.text+0xd598): undefined reference to
`std::getScalingMethod(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
Matrix.cpp.text+0xd61e): undefined reference to
`std::getAlignmentTool(std::basic_string<char, std::char_traits<char>,
std::allocator<char> >)'
collect2: ld returned 1 exit status
make[2]: *** [CreateMatrix] Error 1
make[2]: Leaving directory `/users/sista/qfu/tmp/protclust-1.0.1.org/
Tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/users/sista/qfu/tmp/protclust-1.0.1.org/
Tools'
make: *** [all-recursive] Error 1