• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

unresoved externals LNK 2001

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
ferolv
Asked:
ferolv
1 Solution
 
trestanCommented:
This error usually occurs when you did not include the file containing the symbol. Pls post more codes about your program.
0
 
nietodCommented:
what is the function that it is complaining about?  Is this a function from a library you are using?
0
 
yonatCommented:
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
 
nariCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now