Solved

unresoved externals LNK 2001

Posted on 1998-07-27
4
222 Views
Last Modified: 2011-04-14
Using Microsoft visual C++ 5.0, I'm trying to compile a test program.  However whenever I try to build the project, I get a Linker 2001 error.  I think what is happening is that the linker is decorating the function names because in the output window the function names are preceded by an underscore.  The question  is, how do I fix this error?

0
Comment
Question by:ferolv
4 Comments
 
LVL 8

Expert Comment

by:trestan
ID: 1168798
This error usually occurs when you did not include the file containing the symbol. Pls post more codes about your program.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1168799
what is the function that it is complaining about?  Is this a function from a library you are using?
0
 
LVL 5

Expert Comment

by:yonat
ID: 1168800
Go to Project | Settings | C/C++ | Code Generation and make sure that the "Use run-time library" is on "Multithreaded DLL" (for Release builds) or "Debug Multithreaded DLL" (for Debug builds).
0
 

Accepted Solution

by:
nari earned 50 total points
ID: 1168801
Make sure that you have required libraries included or external symbols defined before
you use them.LNK2001 error comes when you are using something which is not defined.

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now