Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 10th, 2011, 07:21 AM
Authorized User
 
Join Date: Aug 2010
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default "error LNK2001: unresolved external symbol" occured at my second debug,but first not!

Hello, I met a strange error here.When I start debuging my application at the first time,everything is OK,but when I start debuging it again,error LNK2001: unresolved external symbol occured.The code is the same with the first time,I didn't make any change!!
The output information at the second time is below:
1>------ Build started: Project: Modeless, Configuration: Debug Win32 ------
1>Compiling...
1>Modeless.cpp
1>Linking...
1>ModelessDialog.obj : error LNK2001: unresolved external symbol "public: void __thiscall ModelessDialog::OnLoginLogin(void)" (?OnLoginLogin@ModelessDialog@@QAEXXZ)
1>D:\WorkDocuments\Visual C++ Programs\MFC\Modeless\Debug\Modeless.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://d:\WorkDocuments\Visual C++ Programs\MFC\Modeless\Debug\BuildLog.htm"
1>Modeless - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


I use Win7 and VS2008 here.Can anybody help me out?? Thanks!!
Reply With Quote
  #2 (permalink)  
Old January 10th, 2011, 07:48 AM
Authorized User
 
Join Date: Aug 2010
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I clean the solution and start debuging again,the output information is below:
1>------ Build started: Project: Modeless, Configuration: Debug Win32 ------
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>ChildFrm.cpp
1>MainFrm.cpp
1>Modeless.cpp
1>ModelessDialog.cpp
1>ModelessDoc.cpp
1>ModelessView.cpp
1>Generating Code...
1>Compiling resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>ModelessDialog.obj : error LNK2001: unresolved external symbol "public: void __thiscall ModelessDialog::OnLoginLogin(void)" (?OnLoginLogin@ModelessDialog@@QAEXXZ)
1>D:\WorkDocuments\Visual C++ Programs\MFC\Modeless\Debug\Modeless.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://d:\WorkDocuments\Visual C++ Programs\MFC\Modeless\Debug\BuildLog.htm"
1>Modeless - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
MSXSL gives error message for "for" inside "select" ilyaz XSLT 1 December 9th, 2010 05:02 PM
How do you put an "IF DEBUG" condition in a c# program? Bill_Thompson BOOK: Beginning Visual C# 2010 3 August 31st, 2010 03:36 AM
Chapter 1 " 'rails' is not recognized as an internal or external command" Fenghuang BOOK: Beginning Ruby on Rails 1 November 18th, 2009 01:08 PM
Add a CheckBox DataColumn to my DataGridView, Null format: "" or "True" but Error: F ismailc C# 2005 0 September 25th, 2009 04:56 AM
error LNK2019: unresolved external symbol tinawalt VS.NET 2002/2003 3 August 9th, 2005 07:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.