How to eliminate Warning LNK4221?

后端 未结 5 2190
伪装坚强ぢ
伪装坚强ぢ 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:18

    I had a c++ static library with an empty module in it, linking which in non-optimized mode gave me that LNK4221 warning. (in Visual Studio) I went to Librarian->All Options, and added "/ignore:4221" to Additional Options. So, the warning has disappeared.

提交回复
热议问题