I need to generate wrapper to FLTK C++ classes to use it in pure C. I know, that SWIG can do that, and I know how to generate wrapper for C#, Python etc. But I do not know how to wrap C++ to C using SWIG. It's simple task, but I can't find the answer :) Please, help.
我需要为FLTK C ++类生成包装器以在纯C中使用它。我知道,SWIG可以做到这一点,我知道如何为C#,Python等生成包装器。但我不知道如何使用C ++包装C ++痛饮。这是一项简单的任务,但我找不到答案:)请帮忙。
1 个解决方案
#1
5
I don't think SWIG supports generation of C wrappers out of the box. You always need to specify a target language. In 2008, there was a GSoC project to write a C backend, but that was apparently never completed/incorporated into SWIG.
我不认为SWIG支持开箱即用的C包装器。您始终需要指定目标语言。在2008年,有一个GSoC项目编写了一个C后端,但显然从未完成/并入SWIG。
#1
5
I don't think SWIG supports generation of C wrappers out of the box. You always need to specify a target language. In 2008, there was a GSoC project to write a C backend, but that was apparently never completed/incorporated into SWIG.
我不认为SWIG支持开箱即用的C包装器。您始终需要指定目标语言。在2008年,有一个GSoC项目编写了一个C后端,但显然从未完成/并入SWIG。