Skip to content

[FEA] Add extern "C" to generated header, so it can be used from C++ programs #33

@davidelahoz

Description

@davidelahoz

In order to call C libraries from C++, function definitions need to be warped by:

#ifdef __cplusplus
extern "C"{
#endif 

// Funtion declaration...

#ifdef __cplusplus
}
#endif

Automatically adding those lines to the generated header would simplify using classifiers from C++ code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions