This repository has been archived by the owner on Feb 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
cannot find type _CharT
in this scope
#8
Comments
I know only a little rust, and nothing about bindgen, but I think you want to read this and apply some whitelisting so you are not trying to bind the entire C++ std library. |
I tried making several types opaque, but ran into #11. |
I think this is coming from random.h or opt_random.h. Those are the only files that have #define _RANDOM_H 1 |
ctaggart
added a commit
that referenced
this issue
May 18, 2017
fixed by #22 |
This is an issue again because of #28.
|
template <typename, typename = int> class a;
template <typename _CharT> class b { _CharT c; };
template <typename _CharT, typename> class a : b<_CharT> { class B; };
template <typename _CharT, typename d> class a<_CharT, d>::B {
a<_CharT, d> e;
};
class octave_diary_stream : a<char> {};
#!/usr/bin/env bash
set -eu
clang-3.9 --std=c++11 -c __bindgen.ii
~/rust-bindgen/target/release/bindgen \
--output __bindgen.rs \
--enable-cxx-namespaces \
--whitelist-type octave.* \
--whitelist-function octave.* \
--use-core \
--raw-line "extern crate core;" \
__bindgen.ii \
-- -v -x c++ -std=c++11 \
2>/dev/null
rustc __bindgen.rs \
2>&1 \
| grep 'error\[E0412\]: cannot find type `_CharT` in this scope'
# time creduce ./bindgen-octh-8.sh __bindgen.ii |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: