V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ajsonx
V2EX  ›  C++

[C++]打包这个项目报错

  •  
  •   ajsonx · 2020-08-21 11:18:54 +08:00 · 1139 次点击
    这是一个创建于 1343 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://github.com/wolfwind521/IndoorMapEditor

    我的步骤:

    1. qmake ./IndoorMapEditor.pro
    2. make

    然后报错:

    1. duplicate symbol xxx in polygonfeature.o

    和这个 issue 一样: https://github.com/wolfwind521/IndoorMapEditor/issues/2

    求大佬看看

    GeruzoniAnsasu
        1
    GeruzoniAnsasu  
       2020-08-21 11:25:52 +08:00   ❤️ 1
    source 里添加了两次 polygonfeature.cpp
    ajsonx
        2
    ajsonx  
    OP
       2020-08-21 11:34:16 +08:00
    @GeruzoniAnsasu 感谢,我一直在找是不是其他的 cpp 重复 include 了,刚刚检查了下。原来是 .pro 重复引入了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3680 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 04:45 · PVG 12:45 · LAX 21:45 · JFK 00:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.