V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
wuruxu
V2EX  ›  问与答

简单的 C++ 在 debian 10 下不能编译成功, debian testing 编译正常的,这是为什么?

  •  
  •   wuruxu · Aug 21, 2023 · 528 views
    This topic created in 991 days ago, the information mentioned may be changed or developed.
    #include <unordered_map>
    #include <QtCore/QHash>
    #include <QtCore/QString>
    
    using namespace std;
    
    int main(void) {
      std::unordered_map<QString, QString> auths_;
      auths_.emplace("Test001", "abctext");
      return 0;
    }
    
    
    g++ -fPIC -I/usr/include/x86_64-linux-gnu/qt5 -o demo demo.cc
    
    Supplement 1  ·  Aug 22, 2023
    QT 版本的缘故
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1308 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 17:30 · PVG 01:30 · LAX 10:30 · JFK 13:30
    ♥ Do have faith in what you're doing.