Globals in namespace do not work
peremato opened this issue · 1 comments
peremato commented
The following code
namespace NS {
struct C {};
extern C* global_var;
}
produces the following error when compiling the generated wrapper
libTestVarField/src/jlTestVarField.cxx:241:38: error: unknown type name 'C'; did you mean 'NS::C'?
t.method("NS!global_var", []()-> C * { return NS::global_var; });
^
NS::C
./A.h:33:10: note: 'NS::C' declared here
struct C {};
^
I think is similar to the error in #36 (comment)
grasph commented
Reopen the issue if above merge does not fix the issue.