Skip to content

linking with cpp code #42

@tlapik123

Description

@tlapik123

I had a problem with linking the library together with cpp code.
The error:
undefined reference to /* some function */

I resolved it using the solution below.
Would it be possible to add this to the repo [include files]?
Or is there other solution that I just didn't see?

Possible solution

#ifdef __cplusplus
extern "C" {
#endif

/* header declarations */

#ifdef __cplusplus
}
#endif

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