LNK2001 unresolved external symbol __imp__ImageNtHeader@4

reet15 41 Reputation points
2021-07-29T02:06:46.437+00:00

Why am I getting the error LNK2001 unresolved external symbol __imp__ImageNtHeader@4 and how can I resolve it. I'm running a c++ windows console app on x86. And I get this error when running the console app which uses ImageNtHeader in it a few times.

Developer technologies | Visual Studio | Debugging
Developer technologies | C++
0 comments No comments
{count} votes

Accepted answer
  1. Guido Franzke 2,191 Reputation points
    2021-07-29T06:15:26.05+00:00

    Hello,
    you must add Dbghelp.lib to your project.
    Read the documentation: nf-dbghelp-imagentheader
    Regards, Guido

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.