You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use a c header in my rust module, using bindgen to translate it, but bindgen seems to not parse it as well as it could have. It seems to be merely declaring the struct without defining it.
$ nm -A -C path/to/library.so | grep MyLib_Bar
path/to/library.so:xxxxxxxxxxxxxxxx r MyLib_Bar
The text was updated successfully, but these errors were encountered:
ephraimfeldblum
changed the title
Failure to define static consts. Left with only declarations.
Failure to define static const strucs. Left with only declarations.
Oct 23, 2022
I'm trying to use a c header in my rust module, using bindgen to translate it, but bindgen seems to not parse it as well as it could have. It seems to be merely declaring the struct without defining it.
Input C/C++ Header
Bindgen Invocation
Actual Results
$ nm -A -C path/to/library.so | grep MyLib_Bar path/to/library.so: U MyLib_Bar
Expected Results
$ nm -A -C path/to/library.so | grep MyLib_Bar path/to/library.so:xxxxxxxxxxxxxxxx r MyLib_Bar
The text was updated successfully, but these errors were encountered: