Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 05-05-2004, 05:10 PM   #1 (permalink)
Amaranthine
Registered User
 
Amaranthine's Avatar
 
Join Date: May 2004
Posts: 47
Amaranthine is on a distinguished road
C++ compile error

I am writing a windows application and have done a fair amount on it. I was creating a function and decided that I would write it in assembly to speed it up (__asm{ }). I tried to compile it, but the linker gave me an error. I commented out everything new I had added, but it still gave me an error. I then saved the copy and completely removed what I had added. I used the build > clean option and when I compiled, it still gave me the same error.

Here is the error:
Code:
error LNK2001: unresolved external symbol "public: __thiscall CTextDialog::CTextDialog(class CWnd *)" (??0CTextDialog@@QAE@PAVCWnd@@@Z)
Debug/Sketcher.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
(I am using visual C++ 6)

What does it mean, and any suggestions on how to fix it would be greatly appreciated. (I assume the crazy symbols are function and variable decoration, though I'm not posititve)

Thanks in advance.
Amaranthine is offline   Reply With Quote
Old 05-05-2004, 05:27 PM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
You might have declared (defined) a method (member function) but not yet implemented it.
Vice versa is also possible. Did you declare it in its class?
__________________
Valmont is offline   Reply With Quote
Old 05-05-2004, 06:00 PM   #3 (permalink)
Amaranthine
Registered User
 
Amaranthine's Avatar
 
Join Date: May 2004
Posts: 47
Amaranthine is on a distinguished road
Thankyou endlessly, I went back to look over it and found that it didn't exist (in the project anyway) I simply added the .h and .cpp implementation files and it compiled and linked perfectly.

Last edited by Amaranthine; 05-05-2004 at 06:22 PM.
Amaranthine is offline   Reply With Quote
Old 05-05-2004, 06:08 PM   #4 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
No sweat .
__________________
Valmont is offline   Reply With Quote
Old 05-05-2004, 06:23 PM   #5 (permalink)
Amaranthine
Registered User
 
Amaranthine's Avatar
 
Join Date: May 2004
Posts: 47
Amaranthine is on a distinguished road
By the way, where should I post a CISC assembly question?
Amaranthine is offline   Reply With Quote
Old 05-05-2004, 08:23 PM   #6 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
misc coding will do =)
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is this error? john_tran Standard C, C++ 4 10-20-2004 08:30 PM
operate overloading member function in C# sureshkumar_kc MS Technologies ( ASP, VB, C#, .NET ) 2 10-15-2004 02:36 AM
edit? anon Lounge 10 11-21-2002 03:02 PM


All times are GMT -8. The time now is 09:08 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting