I try to compile this man's source code using VC++ 6
http://www.milbo.users.sonic.net/stasm/but I got these linking error, I try include all the gsl library but the error is still there.
Please help me, I really appreciate.
QUOTE
--------------------Configuration: stasm2 - Win32 Debug--------------------
Linking...
asm.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat __thiscall GslMat::Mat::mat33TimesVec2(class GslMat::Mat const &)const " (?mat33TimesVec2@Mat@GslMat@@QBE?AV12@ABV12@@Z)
asm.obj : error LNK2001: unresolved external symbol "public: class GslMat::MatView __thiscall GslMat::Mat::row(unsigned int)" (?row@Mat@GslMat@@QAE?AVMatView@2@I@Z)
startshape.obj : error LNK2001: unresolved external symbol "public: class GslMat::MatView __thiscall GslMat::Mat::row(unsigned int)" (?row@Mat@GslMat@@QAE?AVMatView@2@I@Z)
asm.obj : error LNK2001: unresolved external symbol "public: __thiscall GslMat::Mat::Mat(double const * const,unsigned int,unsigned int)" (??0Mat@GslMat@@QAE@QBNII@Z)
asm.obj : error LNK2001: unresolved external symbol "class GslMat::Mat __cdecl GslMat::SolveWithLU(class GslMat::Mat const &,class GslMat::Mat &)" (?SolveWithLU@GslMat@@YA?AVMat@1@ABV21@AAV21@@Z)
asm.obj : error LNK2001: unresolved external symbol "void __cdecl GslMat::CheckSameNbrRows(class GslMat::Mat const &,class GslMat::Mat const &,char const *)" (?CheckSameNbrRows@GslMat@@YAXABVMat@1@0PBD@Z)
asm.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat __thiscall GslMat::Mat::operator/(double const &)const " (??KMat@GslMat@@QBE?AV01@ABN@Z)
asmfile.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat __thiscall GslMat::Mat::operator/(double const &)const " (??KMat@GslMat@@QBE?AV01@ABN@Z)
asm.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat & __thiscall GslMat::Mat::operator*=(double const &)" (??XMat@GslMat@@QAEAAV01@ABN@Z)
asm.obj : error LNK2001: unresolved external symbol "void __cdecl ReduceImage(class ImageT<unsigned char> &,double,int)" (?ReduceImage@@YAXAAV?$ImageT@E@@NH@Z)
asm.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat & __thiscall GslMat::Mat::operator/=(double const &)" (??_0Mat@GslMat@@QAEAAV01@ABN@Z)
prof.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat & __thiscall GslMat::Mat::operator/=(double const &)" (??_0Mat@GslMat@@QAEAAV01@ABN@Z)
asm.obj : error LNK2001: unresolved external symbol "public: void __thiscall GslMat::Mat::dimKeep(unsigned int,unsigned int)" (?dimKeep@Mat@GslMat@@QAEXII@Z)
startshape.obj : error LNK2001: unresolved external symbol "public: void __thiscall GslMat::Mat::dimKeep(unsigned int,unsigned int)" (?dimKeep@Mat@GslMat@@QAEXII@Z)
asm.obj : error LNK2001: unresolved external symbol "void __cdecl ScaleImage(class ImageT<unsigned char> &,int,int,bool)" (?ScaleImage@@YAXAAV?$ImageT@E@@HH_N@Z)
asm.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat __thiscall GslMat::Mat::operator*(double const &)const " (??DMat@GslMat@@QBE?AV01@ABN@Z)
asm.obj : error LNK2001: unresolved external symbol "void __cdecl ConvertRgbImageToGray(class ImageT<unsigned char> &,class ImageT<struct tRGB> const &)" (?ConvertRgbImageToGray@@YAXAAV?$ImageT@E@@ABV?$ImageT@UtRGB@@@@@Z)
asm.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat __thiscall GslMat::Mat::operator-(class GslMat::Mat const &)const " (??GMat@GslMat@@QBE?AV01@ABV01@@Z)
prof.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat __thiscall GslMat::Mat::operator-(class GslMat::Mat const &)const " (??GMat@GslMat@@QBE?AV01@ABV01@@Z)
asm.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat __thiscall GslMat::Mat::inverse(void)const " (?inverse@Mat@GslMat@@QBE?AV12@XZ)
asm.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat __thiscall GslMat::Mat::operator+(class GslMat::Mat const &)const " (??HMat@GslMat@@QBE?AV01@ABV01@@Z)
startshape.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat __thiscall GslMat::Mat::operator+(class GslMat::Mat const &)const " (??HMat@GslMat@@QBE?AV01@ABV01@@Z)
asm.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat __thiscall GslMat::Mat::operator*(class GslMat::Mat const &)const " (??DMat@GslMat@@QBE?AV01@ABV01@@Z)
asm.obj : error LNK2001: unresolved external symbol "public: class GslMat::MatView __thiscall GslMat::Mat::viewAsCol(void)" (?viewAsCol@Mat@GslMat@@QAE?AVMatView@2@XZ)
asm.obj : error LNK2001: unresolved external symbol "double __cdecl GslMat::xAx(class GslMat::Mat const &,class GslMat::Mat const &)" (?xAx@GslMat@@YANABVMat@1@0@Z)
asm.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat & __thiscall GslMat::Mat::operator-=(class GslMat::Mat const &)" (??ZMat@GslMat@@QAEAAV01@ABV01@@Z)
prof.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat & __thiscall GslMat::Mat::operator-=(class GslMat::Mat const &)" (??ZMat@GslMat@@QAEAAV01@ABV01@@Z)
asm.obj : error LNK2001: unresolved external symbol "public: void __thiscall GslMat::Mat::dimClear(unsigned int,unsigned int)" (?dimClear@Mat@GslMat@@QAEXII@Z)
rowley.obj : error LNK2001: unresolved external symbol "public: void __thiscall GslMat::Mat::dimClear(unsigned int,unsigned int)" (?dimClear@Mat@GslMat@@QAEXII@Z)
violajones.obj : error LNK2001: unresolved external symbol "public: void __thiscall GslMat::Mat::dimClear(unsigned int,unsigned int)" (?dimClear@Mat@GslMat@@QAEXII@Z)
asmfile.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat __thiscall GslMat::Mat::t(void)const " (?t@Mat@GslMat@@QBE?AV12@XZ)
asmfile.obj : error LNK2001: unresolved external symbol "public: void __thiscall GslMat::Mat::read(char const *,struct _iobuf *,char *)" (?read@Mat@GslMat@@QAEXPBDPAU_iobuf@@PAD@Z)
asmfile.obj : error LNK2001: unresolved external symbol "public: void __thiscall GslMat::Mat::dim(unsigned int,unsigned int)" (?dim@Mat@GslMat@@QAEXII@Z)
prof.obj : error LNK2001: unresolved external symbol "public: void __thiscall GslMat::Mat::dim(unsigned int,unsigned int)" (?dim@Mat@GslMat@@QAEXII@Z)
asmfile.obj : error LNK2001: unresolved external symbol "void __cdecl ReadMatVec(class cvec<class GslMat::Mat> *,char const *,struct _iobuf *)" (?ReadMatVec@@YAXPAV?$cvec@VMat@GslMat@@@@PBDPAU_iobuf@@@Z)
imshape.obj : error LNK2001: unresolved external symbol "void __cdecl CropRgbImage(class ImageT<struct tRGB> &,int,int,int,int,bool)" (?CropRgbImage@@YAXAAV?$ImageT@UtRGB@@@@HHHH_N@Z)
imshape.obj : error LNK2001: unresolved external symbol "public: class GslMat::MatView const __thiscall GslMat::Mat::col(unsigned int)const " (?col@Mat@GslMat@@QBE?BVMatView@2@I@Z)
main.obj : error LNK2001: unresolved external symbol "public: void __thiscall GslMat::Mat::print(char const * const,char const * const,char const *,struct _iobuf *,int,bool)" (?print@Mat@GslMat@@QAEXQBD0PBDPAU_iobuf@@H_N@Z)
main.obj : error LNK2001: unresolved external symbol "class GslMat::Mat __cdecl GslMat::operator-(double const &,class GslMat::Mat const &)" (??GGslMat@@YA?AVMat@0@ABNABV10@@Z)
main.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat & __thiscall GslMat::Mat::operator+=(double const &)" (??YMat@GslMat@@QAEAAV01@ABN@Z)
main.obj : error LNK2001: unresolved external symbol "public: class GslMat::MatView __thiscall GslMat::Mat::col(unsigned int)" (?col@Mat@GslMat@@QAE?AVMatView@2@I@Z)
main.obj : error LNK2001: unresolved external symbol "void __cdecl WriteBmp(class ImageT<struct tRGB> const &,char const * const,bool)" (?WriteBmp@@YAXABV?$ImageT@UtRGB@@@@QBD_N@Z)
main.obj : error LNK2001: unresolved external symbol "char const * __cdecl sLoadImage(class ImageT<struct tRGB> &,char const *,bool,bool,bool)" (?sLoadImage@@YAPBDAAV?$ImageT@UtRGB@@@@PBD_N22@Z)
prof.obj : error LNK2001: unresolved external symbol "public: void __thiscall GslMat::Mat::assign(class GslMat::Mat const &)" (?assign@Mat@GslMat@@QAEXABV12@@Z)
startshape.obj : error LNK2001: unresolved external symbol "public: void __thiscall GslMat::Mat::assign(class GslMat::Mat const &)" (?assign@Mat@GslMat@@QAEXABV12@@Z)
prof.obj : error LNK2001: unresolved external symbol "public: class GslMat::MatView const __thiscall GslMat::Mat::row(unsigned int)const " (?row@Mat@GslMat@@QBE?BVMatView@2@I@Z)
startshape.obj : error LNK2001: unresolved external symbol "public: class GslMat::MatView const __thiscall GslMat::Mat::row(unsigned int)const " (?row@Mat@GslMat@@QBE?BVMatView@2@I@Z)
prof.obj : error LNK2001: unresolved external symbol "public: void __thiscall GslMat::Mat::dim(unsigned int,char const *)" (?dim@Mat@GslMat@@QAEXIPBD@Z)
prof.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat __thiscall GslMat::Mat::normalize(void)const " (?normalize@Mat@GslMat@@QBE?AV12@XZ)
prof.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat & __thiscall GslMat::Mat::operator+=(class GslMat::Mat const &)" (??YMat@GslMat@@QAEAAV01@ABV01@@Z)
prof.obj : error LNK2001: unresolved external symbol "public: class GslMat::Mat __thiscall GslMat::Mat::normalizeMe(void)" (?normalizeMe@Mat@GslMat@@QAE?AV12@XZ)
prof.obj : error LNK2001: unresolved external symbol "public: class GslMat::MatView __thiscall GslMat::Mat::view(unsigned int,unsigned int,unsigned int,unsigned int,unsigned int)" (?view@Mat@GslMat@@QAE?AVMatView@2@IIIII@Z)
prof.obj : error LNK2001: unresolved external symbol "public: double __thiscall GslMat::Mat::absSum(void)const " (?absSum@Mat@GslMat@@QBENXZ)
prof.obj : error LNK2001: unresolved external symbol "public: void __thiscall GslMat::Mat::fill(double,unsigned int,unsigned int,unsigned int,unsigned int)" (?fill@Mat@GslMat@@QAEXNIIII@Z)
rowley.obj : error LNK2001: unresolved external symbol "int __cdecl Track_FindAllFaces(struct tFaceEyeLocation * *,class ImageT<unsigned char> const &,char const *)" (?Track_FindAllFaces@@YAHPAPAUtFaceEyeLocation@@ABV?$ImageT@E@@PBD@Z)
startshape.obj : error LNK2001: unresolved external symbol "public: bool __thiscall GslMat::Mat::fARowIsZero(double)const " (?fARowIsZero@Mat@GslMat@@QBE_NN@Z)
startshape.obj : error LNK2001: unresolved external symbol "class GslMat::Mat __cdecl GslMat::operator*(double const &,class GslMat::Mat const &)" (??DGslMat@@YA?AVMat@0@ABNABV10@@Z)
util.obj : error LNK2001: unresolved external symbol "void __cdecl FreeNetworks(void)" (?FreeNetworks@@YAXXZ)
Debug/stasm2.exe : fatal error LNK1120: 46 unresolved externals
Error executing link.exe.
stasm2.exe - 59 error(s), 0 warning(s)
This post has been edited by wanbong: 15 Jul, 2008 - 09:27 PM