Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要为 FLTK C++ 类生成包装器以在纯 C 中使用它。我知道 SWIG 可以做到这一点,而且我知道如何为 C#、Python 等生成包装器。但我不知道如何使用痛饮。这是一个简单的任务,但我找不到答案:) 请帮忙。
我认为 SWIG 不支持开箱即用的 C 包装器的生成。您始终需要指定目标语言。2008 年,有一个GSoC 项目来编写C 后端,但显然从未完成/并入 SWIG。