How to eliminate Warning LNK4221?

后端 未结 5 2169
伪装坚强ぢ
伪装坚强ぢ 2021-02-18 23:46

I am working on a project using c++/windows forms (visual studio 2010), we have 4 projects:

  • 1 project containing GUI windows forms {managed code} and this is the
5条回答
  •  离开以前
    2021-02-19 00:23

    This was kind of just my particular problem but if your .cpp doesn't define any new functions or has empty bodies for constructor functions, you will get this warning. I used an initialization list for my constructor so the body was empty.

提交回复
热议问题