473,387 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

error LNK2001: unresolved external symbol

Hi

I have a problem with my program in VC++6
When I compile it, the following errors are listed. I spend a lot of
time on the groups.google.com to find its reason, but none of
comments
could not help me. Does any body know what is the problem?
By the way, I have already added the matrixop.h to AfxStd.h
the matrixop.h is a library that I have been written to doing matrix
operation. for example the MLength() function returns the size of a
matix.

Thanks.
OtherFunctions.obj : error LNK2001: unresolved external symbol "int
__cdecl MLength(class math::matrix<doubleconst &)" (?
MLength@@YAHABV?
$matrix@N@math@@@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "int
__cdecl MLength(class math::matrix<doubleconst &)" (?
MLength@@YAHABV?
$matrix@N@math@@@Z)
OtherFunctions.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MHoriz(class math::matrix<doubleconst
&)" (?MHoriz@@YA?AV?$matrix@N@math@@ABV12@@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MConCat(class math::matrix<doubleconst
&,class math::matrix<doubleconst &,char)" (?MConCat@@YA?AV?
$matrix@N@math@@ABV12@0D@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MSubMat(class math::matrix<doubleconst
&,int,int,int,int)" (?MSubMat@@YA?AV?$matrix@N@math@@ABV12@HHHH@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MDotDiv(class math::matrix<doubleconst
&,double)" (?MDotDiv@@YA?AV?$matrix@N@math@@ABV12@N@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "void
__cdecl MInsert(class math::matrix<double&,double)" (?
MInsert@@YAXAAV?$matrix@N@math@@N@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "double
__cdecl MtoD(class math::matrix<doubleconst &)" (?MtoD@@YANABV?
$matrix@N@math@@@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MSum(class math::matrix<doubleconst
&)" (?MSum@@YA?AV?$matrix@N@math@@ABV12@@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MDotMul(class math::matrix<doubleconst
&,double)" (?MDotMul@@YA?AV?$matrix@N@math@@ABV12@N@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MDotDiv(class math::matrix<doubleconst
&,class math::matrix<doubleconst &)" (?MDotDiv@@YA?AV?
$matrix@N@math@@ABV12@0@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MLog10(class math::matrix<doubleconst
&)" (?MLog10@@YA?AV?$matrix@N@math@@ABV12@@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MAsin(class math::matrix<doubleconst
&)" (?MAsin@@YA?AV?$matrix@N@math@@ABV12@@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MSqrt(class math::matrix<doubleconst
&)" (?MSqrt@@YA?AV?$matrix@N@math@@ABV12@@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MDotMul(class math::matrix<doubleconst
&,class math::matrix<doubleconst &)" (?MDotMul@@YA?AV?
$matrix@N@math@@ABV12@0@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MCos(class math::matrix<doubleconst
&)" (?MCos@@YA?AV?$matrix@N@math@@ABV12@@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MDotPow(class math::matrix<doubleconst
&,double)" (?MDotPow@@YA?AV?$matrix@N@math@@ABV12@N@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MSin(class math::matrix<doubleconst
&)" (?MSin@@YA?AV?$matrix@N@math@@ABV12@@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MRemCol(class math::matrix<doubleconst
&,int)" (?MRemCol@@YA?AV?$matrix@N@math@@ABV12@H@Z)
Preprocess.obj : error LNK2001: unresolved external symbol "class
math::matrix<double__cdecl MSub(class math::matrix<doubleconst
&,double)" (?MSub@@YA?AV?$matrix@N@math@@ABV12@N@Z)
Debug/Software.exe : fatal error LNK1120: 19 unresolved externals
Error executing link.exe.
Software.exe - 21 error(s), 0 warning(s)

Apr 16 '07 #1
1 3047
sadegh wrote:
OtherFunctions.obj : error LNK2001: unresolved external symbol "int
__cdecl MLength(class math::matrix<doubleconst &)" (?
MLength@@YAHABV?
$matrix@N@math@@@Z)
In comp.lang.c++, Victor Bazarov gave you the following answer:
No, it's not the "library that contains these math classes". It's
the header that contains the definitions of the classes. The actual
implementation is most likely in a ".lib" file. You need to read the
documentation for your library and pay attention to what you need to
do with the .lib file, along with adding the header to your source.
This was excellent advice. Do not ignore it.
Apr 16 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: yanwan | last post by:
I met this problem in executing a c++ project in visual studio. Does anyone have suggestions to resolve "error lnk 2001"? --------------------Configuration: reconstruction - Win32...
2
by: Helen | last post by:
Hi I am trying to compile a package of avi to mpeg1 C source codes But I got the link error I searched actually my VFW.h and Vfw32.lib are all in the directory what should I do thanks a lot...
2
by: Mary | last post by:
Hello, I am having a problem with the cl compiler. I have written a C class (RegConnect.c) which uses Win32 API functions such as RegOpenKey, RegCloseKey etc. Initially when I was trying to...
4
by: Sanjay Kumar | last post by:
Folks ! I am working with VC++ after a long time and having problem linking latest xerces 2.7 in VC++ 2005 Express Edition. I have done following: 1. downloaded and unpacked the the...
1
by: developer | last post by:
Hi All I have made a .NET project. the files included are borland c++ files that i am migrate to VC++ .NET I am using Microsoft Visual C++ .NET 2003. the compilation goes through properly,...
2
by: dasilva109 | last post by:
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include...
5
by: eberesche | last post by:
Hello, as a novice in ASN.1 I have me to a project in C ++ under use of ASN.1 - structures risquély. One of my colleagues means, this would deal something with masochism ;-). Result should be a DLL...
6
by: sadegh | last post by:
Hi I have a problem with my program in VC++6 When I compile it, the following errors are listed. I spend a lot of time on the groups.google.com to find its reason, but none of comments could...
1
by: mahricky | last post by:
i have the following error msg when i buid one of my cpp projects in visual studio 6. pls help me, it's very urgent. extures.obj : error LNK2001: unresolved external symbol "public: __thiscall...
0
by: Ling | last post by:
I am using boost.python to wrap C++ function which includes directmusic libraries to simply play the midi, but lots of linkage errors "error LNK2001: unresolved external symbol". I wonder if it is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.