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

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

  •  
  •   forkon · May 26, 2015 · 4055 views
    This topic created in 3989 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   ·   1445 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 23:57 · PVG 07:57 · LAX 16:57 · JFK 19:57
    ♥ Do have faith in what you're doing.