美文网首页
vs2017错误:error:LNK2005 _main 已经在

vs2017错误:error:LNK2005 _main 已经在

作者: Y_166d | 来源:发表于2020-03-16 00:30 被阅读0次

    采用该方法解决了:

    https://blog.csdn.net/baidu_39418573/article/details/89138411

    https://img-blog.csdn.net/20170612234214641?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvWWFuX0xlc3M=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast

    vs2017中 c++ “error LNK2005: 已经在*.obj中定义” 错误

    符号对象中已定义
    符号符号已多次定义。
    此错误后跟错误LNK1169。

    解决办法

    在 属性->配置属性->链接器->命令行中添加 /FORCE:MULTIPLE 即可


    网上其他方法:
    https://blog.csdn.net/yan_less/article/details/73149578
    https://blog.csdn.net/weixin_41915448/article/details/80192030

    相关文章

      网友评论

          本文标题:vs2017错误:error:LNK2005 _main 已经在

          本文链接:https://www.haomeiwen.com/subject/tiziehtx.html