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

Several libraries with nbind #102

Closed
BotellaA opened this issue Jan 12, 2018 · 2 comments
Closed

Several libraries with nbind #102

BotellaA opened this issue Jan 12, 2018 · 2 comments

Comments

@BotellaA
Copy link

Hello,

I have a C++ project with a lot of libraries (A, B, C ...). I would like to have one "nbind" library for each of them (nbind_A, nbind_B, nbind_C ...).

I managed to compile the nbind_X.node libraries using node-cmake but I am not sure how to use them in a JS script. How would you do to be able to requiere these nbind_X libraries from a JS script?

Thank you for your help

@BotellaA BotellaA changed the title Output name other than nbind Several libraries with nbind Jan 12, 2018
@BotellaA
Copy link
Author

I understood that I needed a nbind_X.js for each library. Having done that (by copying and editing your nbind.js), I can require all my nbind_X libraries.

However, is it possible to use a function defined in the nbind_B that takes as parameter an object defined in nbind_A? I get an "Unbound type" error if I try.

@BotellaA
Copy link
Author

Closing for #104

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

1 participant