Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C support ? #20

Closed
Andros987 opened this issue Jun 11, 2016 · 1 comment
Closed

C support ? #20

Andros987 opened this issue Jun 11, 2016 · 1 comment

Comments

@Andros987
Copy link

Andros987 commented Jun 11, 2016

Hi, I have take a look on your project, it s working perfectly, but I have some problem to use it in a C application.
Apparently the library is in C at the start but the header file is only for c++ project (in the include folder).

And I have some problem to convert it, have you a C example too ?

@chenguoguo
Copy link
Collaborator

Hi, the library itself is written in C++. You can create a C wrapper for the class and use it in C programs though, it's pretty straightforward. You can, e.g., follow this post: https://www.teddy.ch/c++_library_in_c/

If you create such a wrapper, it will be great if you can submit a pull request for it to our devel branch. You can probably put it under examples/C/ directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants