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

How to use global namespace? #110

Open
zwcloud opened this issue Jul 6, 2020 · 3 comments
Open

How to use global namespace? #110

zwcloud opened this issue Jul 6, 2020 · 3 comments

Comments

@zwcloud
Copy link

zwcloud commented Jul 6, 2020

Set the namespace(s) to bind after the flag --bind. But what if one want to bind classes and functions defined in global namepsace?

Can we use binder like following?

binder \
--root-module MyRootModule \
--prefix /root/GeneratedBindings \
--suppress-errors \
--bind ""
-- ....
@zwcloud zwcloud changed the title Hot to use global namespace? How to use global namespace? Jul 7, 2020
@lyskov
Copy link
Member

lyskov commented Jul 8, 2020

Yes, that should work.

@zwcloud
Copy link
Author

zwcloud commented Jul 13, 2020

Yes, that should work.

No. That doesn't work. I have tried.

@lyskov
Copy link
Member

lyskov commented Jul 21, 2020

@zwcloud could you please double check your input flags and cross check them with what we use during testing? (see line https://github.com/RosettaCommons/binder/blob/master/test/self-test.py#L76). Binding objects from global namespace is exactly what we do when we run our Binder self-test. Here is input and output of one of these tests to check: https://github.com/RosettaCommons/binder/blob/master/test/T01.enum.hpp https://github.com/RosettaCommons/binder/blob/master/test/T00.basic.ref .

As an idea of what to try to debug this: Could you please try to feed one of our tests files in your environment (say https://github.com/RosettaCommons/binder/blob/master/test/T01.enum.hpp) and see what output will you get? Thannks,

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