• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • 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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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