?
Solved

external link encounter when linking CDocument, App

Posted on 2004-08-13
4
Medium Priority
?
301 Views
Last Modified: 2013-11-20
GuiderView.obj : error LNK2019: unresolved external symbol "public: void __thiscall CGuiderApp::setPointDetails(class CString,class CString,class CString,class PointListStorage *)" (?setPointDetails@CGuiderApp@@QAEXVCString@@V2@1PAVPointListStorage@
@@Z) referenced in function "public: void __thiscall CGuiderView::AddPoint(class CString,class CString,class CString)" (?AddPoint@CGuiderView@@QAEXVCString@@00@Z)
X86Rel/Guider.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.


I have got this compile error. Anyone knows how to resolve this?
The error occurs with this line:
     theApp.setDetails( a, b, c, GetDocument() );

//the method in theApp that is being called
void CTestApp::setDetails( const CString &a, CString b, c, ListStorage* pDoc )
{
      pDoc->setDetails( a, b, c);
}
0
Comment
Question by:mwcmp
  • 2
  • 2
4 Comments
 
LVL 19

Expert Comment

by:drichards
ID: 11796505
The error is referencing 'CGuiderApp::setPointDetails' in function 'CGuiderView::AddPoint'.  Where are they since the lines of code you list are in CTestApp and have completely different method names involved?  Do you have a cut-and-paste problem somewhere or an incorrect header included?
0
 

Author Comment

by:mwcmp
ID: 11798811
Sorry. Cause I edited the codes that I pasted. Therefore, the error goes like this.


TestView.obj : error LNK2019: unresolved external symbol "public: void __thiscall CTestApp::setPointDetails(class CString,class CString,class CString,class PointListStorage *)" (?setPointDetails@CTestApp@@QAEXVCString@@V2@1PAVListStorage@
@@Z) referenced in function "public: void __thiscall CTestView::AddPoint(class CString,class CString,class CString)" (?AddPoint@CTestView@@QAEXVCString@@00@Z)
X86Rel/Test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

And yes, the following line of code lies in the CTestView class.
   theApp.setDetails( a, b, c, GetDocument() );
0
 
LVL 19

Accepted Solution

by:
drichards earned 300 total points
ID: 11798827
Closer.  Now it is complaining that there is no symbol 'setPointDetails' in CTestApp.  If your first post was correct, it looks like you changed it to just 'setDeatils'?  Where are you referencing 'setPointDetails' in your code?  The line you list is 'setDetails' which is not the same.  What does the CTestView::AddPoint method look like?
0
 

Author Comment

by:mwcmp
ID: 11798867
I found where my problem lies. Thanks alot! :)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question