# LNK1120: An external command that could not be resolved

**URL:** https://discourse.vtk.org/t/lnk1120-an-external-command-that-could-not-be-resolved/5794
**Category:** Support
**Created:** [May 17, 2021, 2:06am UTC](https://discourse.vtk.org/t/lnk1120-an-external-command-that-could-not-be-resolved/5794 "2021-05-17T02:06:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jame](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/j/73ab20/32.png) [@Jame](https://discourse.vtk.org/u/Jame)
#### Post date: [May 17, 2021, 2:06am UTC](https://discourse.vtk.org/t/lnk1120-an-external-command-that-could-not-be-resolved/5794/1 "2021-05-17T02:06:27Z")

</div>

Hello, everyone,I recently encountered a tricky problem in a test program: LNK2019 : Unable to parse external symbol main, function “int \_\_cDecl invoke\_main(void)” (? invoke\_main@yahxz) refers to the symbol project1d :\VTK\ project1\ msvcrtd.lib (exe\_main.obj).

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [May 18, 2021, 1:46pm UTC](https://discourse.vtk.org/t/lnk1120-an-external-command-that-could-not-be-resolved/5794/2 "2021-05-18T13:46:02Z")

</div>

Hi,

Please, take a look at this: [c - MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol \_main referenced in function \_\_\_tmainCRTStartup - Stack Overflow](https://stackoverflow.com/questions/27370181/msvcrtd-libcrtexe-obj-error-lnk2019-unresolved-external-symbol-main-refere) . One of the answers is a long investigation procedure for your issue. Tricky indeed.

all the best,

Paulo
