473,322 Members | 1,494 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,322 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?.
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
6 121812
On Apr 16, 9:21 am, "sadegh" <sadegh...@yahoo.comwrote:
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?.
Thanks.

OtherFunctions.obj : error LNK2001: unresolved external symbol "int
__cdecl MLength(class math::matrix<doubleconst &)" (?MLength@@YAHABV?
$matrix@N@math@@@Z)
What library contains these math classes? It looks like you're not
linking with it.
Apr 16 '07 #2
sadegh wrote:
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?.
Thanks.
OtherFunctions.obj : error LNK2001: unresolved external symbol "int
__cdecl MLength(class math::matrix<doubleconst &)" (?MLength@@YAHABV?
$matrix@N@math@@@Z)
[snip]
>
Software.exe - 21 error(s), 0 warning(s)
An "unresolved external symbol" is an identifier that the translator
could not find. In many instances, a source file was not specified
or a library not included.

Examine the requirements of your header files and verify that
you have specified all necessary source and libraries to your
translator (compiler).

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library
Apr 16 '07 #3
sadegh wrote:
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?.
The problem is that your linker cannot find the defintions of those
functions.
Most likely you have forgotten to add the module where those function are
defined to the project. However, we can't help you with that because it's
not defined by C++, but by VC++ project organization. Post to
'microsoft.public.vc.project-mgt' or 'microsoft.public.vc.ide_general'.
Thanks.
OtherFunctions.obj : error LNK2001: unresolved external symbol "int
__cdecl MLength(class math::matrix<doubleconst &)"
(?MLength@@YAHABV? $matrix@N@math@@@Z)
[..]
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Apr 16 '07 #4
On Apr 16, 5:32 pm, dave_mikes...@fastmail.fm wrote:
On Apr 16, 9:21 am, "sadegh" <sadegh...@yahoo.comwrote:
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?.
Thanks.
OtherFunctions.obj : error LNK2001: unresolved external symbol "int
__cdecl MLength(class math::matrix<doubleconst &)" (?MLength@@YAHABV?
$matrix@N@math@@@Z)

What library contains these math classes? It looks like you're not
linking with it.
the library that contains these math classes is matrixop.h where I
have been added it in "StdAfx.h" file.

Apr 16 '07 #5
sadegh wrote:
On Apr 16, 5:32 pm, dave_mikes...@fastmail.fm wrote:
>On Apr 16, 9:21 am, "sadegh" <sadegh...@yahoo.comwrote:
>>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?.
Thanks.
>>OtherFunctions.obj : error LNK2001: unresolved external symbol "int
__cdecl MLength(class math::matrix<doubleconst &)"
(?MLength@@YAHABV? $matrix@N@math@@@Z)

What library contains these math classes? It looks like you're not
linking with it.

the library that contains these math classes is matrixop.h where I
have been added it in "StdAfx.h" file.
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, however, is all off-topic because it's specific to Windows or
Visual C++. Please post to the appropriate newsgroup from the family
'microsoft.public.vc.*'.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Apr 16 '07 #6
Hy!

Can you post some code?

Ronny
Apr 17 '07 #7

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

Similar topics

3
by: We need more power captain | last post by:
Hi, I know less than a noob, I've been asked to do some compiles in VC++ 6 without knowing too much at all. (I'm a COBOL program normally so this is all too much for me) I open VC++6, open...
2
by: Faith | last post by:
hi guys, As you can understand from the subject the problem is the: error LNK2001: unresolved external symbol _errno Whats so wierd is that when i build the project "A" alone it works with no...
1
by: Alek Davis | last post by:
I am trying to build a DLL in VS.NET 2003 and it works fine in Debug mode. However, if I try to build it in Release mode, I get the following link error in several .obj files: error LNK2001:...
2
by: jpeters | last post by:
Just installed Service Pack 5 for Visual C++ 6.0. Now I'm getting an error when linking as follows: inking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16...
0
by: Franky | last post by:
Tried to build in VS2005 a program that builds OK in VS2003 and get errors like the following: Error 57 error LNK2001: unresolved external symbol _WinMainCRTStartup AnnGame Error 58 error...
1
by: Vishu7 | last post by:
Hi, I am porting my code which is written in VC2005( c++) to WinCE 5.0. When i build my project i get this error AACDec.def : error LNK2001: unresolved external symbol DllCanUnloadNow ...
0
by: =?Utf-8?B?TWF0ZXVzeiBSYWpjYQ==?= | last post by:
Hi! How can I fix this error? Error 1 error LNK2001: unresolved external symbol "extern "C" long __stdcall SHFlushClipboard(void)" (?SHFlushClipboard@@$$J10YGJXZ) UnmanagedTest.obj Basically...
1
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...
5
by: bonnielym84 | last post by:
Im new here..didnt noe whether is this the rite way to post my problem..Really need help here..i've been stucked in this error from last wk..My problem is like this..Im using VC++ 6.0 to compile my C...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.