[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

external link encounter when linking CDocument, App

Posted on 2004-08-13
4
Medium Priority
?
288 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

656 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