ajsonx
V2EX  ›  C++

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

  •  
  •   ajsonx · Aug 21, 2020 · 1753 views
    This topic created in 2096 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   ·   1812 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 16:15 · PVG 00:15 · LAX 09:15 · JFK 12:15
    ♥ Do have faith in what you're doing.