Solved

unresoved externals LNK 2001

Posted on 1998-07-27
4
227 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What does std::atomic give me? 7 123
C++ question 3 65
How to remove Recent Projects from Embarcadero C++ builder XE10. Berlin 2 55
c++, dynamic object by json 1 42
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

786 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