Build Succeeded, but no .lib file gets created

前端 未结 10 1436
执笔经年
执笔经年 2021-01-31 13:37

I inherited a substantial amount of code, including a visual studio project that is supposed to (as best as I can tell) build a .lib file. Visual studio says \"... Generating C

10条回答
  •  無奈伤痛
    2021-01-31 14:24

    Had the same issue here with VS2019. In my case I had built a few times with no symbols defined (i.e. cpp files were empty).

    After I added symbol definitions into the cpp files I began to notice this issue (no lib file was being generated).

    A simple clean via 'Rebuild all' fixed it. Perhaps if you build whilst there are no symbols defined, something gets cached somewhere that you have an empty product DLL, and you need to clean the solution to reset that cached state.

提交回复
热议问题