Build Succeeded, but no .lib file gets created

前端 未结 10 1437
执笔经年
执笔经年 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:21

    I was exporting a class from the dll but had declared the class inline in .h file. The .cpp file was there but empty. This setup was causing the .lib file to be not generated.

    I moved the implementation of functions to .cpp file and now lib file is generated.

    This is in VS2019.

提交回复
热议问题