forkon
V2EX  ›  Swift

在 swift 工程里导入 c++头文件后出现这样的 error, v 友们都是怎么干掉它的

  •  
  •   forkon · May 26, 2015 · 4087 views
    This topic created in 4006 days ago, the information mentioned may be changed or developed.

    Swift Compiler Error

    'Bool' is ambiguous for type lookup in this context

    翻了一下那个c++头文件,发现这样一行:
    typedef int Bool;

    ????????????????????????????????????????????????
    在不改动头文件的情况下该怎么处理呢?
    ????????????????????????????????????????????????

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   945 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 20:06 · PVG 04:06 · LAX 13:06 · JFK 16:06
    ♥ Do have faith in what you're doing.