V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ajsonx
V2EX  ›  C++

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

  •  
  •   ajsonx · Aug 21, 2020 · 1717 views
    This topic created in 2080 days ago, the information mentioned may be changed or developed.

    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  
       Aug 21, 2020   ❤️ 1
    source 里添加了两次 polygonfeature.cpp
    ajsonx
        2
    ajsonx  
    OP
       Aug 21, 2020
    @GeruzoniAnsasu 感谢,我一直在找是不是其他的 cpp 重复 include 了,刚刚检查了下。原来是 .pro 重复引入了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   753 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 20:55 · PVG 04:55 · LAX 13:55 · JFK 16:55
    ♥ Do have faith in what you're doing.