Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,602 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 962 people online right now. Registration is fast and FREE... Join Now!




error LNK2001 unresolved extermal symbol with gsl

 
Reply to this topicStart new topic

error LNK2001 unresolved extermal symbol with gsl

wanbong
post 15 Jul, 2008 - 08:55 PM
Post #1


New D.I.C Head

*
Joined: 15 Jul, 2008
Posts: 3

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
User is offlineProfile CardPM

Go to the top of the page

Martyr2
post 15 Jul, 2008 - 10:04 PM
Post #2


Programming Theoretician

Group Icon
Joined: 18 Apr, 2007
Posts: 5,062



Thanked 175 times

Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions


Make sure you have the "mat" folder in a place where the project can see it and that it can see the mat.hpp and mat.cpp files where are in that "mat" folder. Your project is not seeing these files for some reason and the functions it is attempting to use are in those two files.

smile.gif
User is offlineProfile CardPM

Go to the top of the page

wanbong
post 15 Jul, 2008 - 10:11 PM
Post #3


New D.I.C Head

*
Joined: 15 Jul, 2008
Posts: 3

QUOTE(Martyr2 @ 15 Jul, 2008 - 11:04 PM) *

Make sure you have the "mat" folder in a place where the project can see it and that it can see the mat.hpp and mat.cpp files where are in that "mat" folder. Your project is not seeing these files for some reason and the functions it is attempting to use are in those two files.

smile.gif


I did go to tools options directories include files, and include the mat folder
the mat.hpp did appear under external Dependencies folder
User is offlineProfile CardPM

Go to the top of the page

Martyr2
post 15 Jul, 2008 - 10:15 PM
Post #4


Programming Theoretician

Group Icon
Joined: 18 Apr, 2007
Posts: 5,062



Thanked 175 times

Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions


Got to make sure it sees both the hpp and cpp file. They go together. One is the header declarations and the other is the implementation file.

smile.gif
User is offlineProfile CardPM

Go to the top of the page

wanbong
post 16 Jul, 2008 - 02:59 AM
Post #5


New D.I.C Head

*
Joined: 15 Jul, 2008
Posts: 3

QUOTE(Martyr2 @ 15 Jul, 2008 - 11:15 PM) *

Got to make sure it sees both the hpp and cpp file. They go together. One is the header declarations and the other is the implementation file.

smile.gif


ok biggrin.gif I solve the prob, in this case, I add the cpp files to resource folder
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/23/08 02:06AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month