Closed dryBranch closed 11 months ago
Hi! Thanks for opening your first issue here! :smile:
[SEVERE] : C:\Users\24408\AppData\Local\Temp.tmpwg3Aep.h:1:10: fatal error: 'stdbool.h' file not found [Lexical or Preprocessor Issue]
This is what I expected :) search this in the issue section and you will find solution IMHO
Absolutely Right! It seems the error of upstream tool ffigen
. I set the CPATH
and it works.
Maybe it need to show explicitly as a error log when using frb codegen? @fzyzcjy
Good idea - maybe e.g. we can detect this "fatal error: stdbool.h" thing, and print out a message to users saying one possible reason is blah blah. Looking forward to your PR!
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.
Describe the bug
But the abstract class need
DartPostCObject
instead ofint
In vscode it throw a error info
Codegen logs with
RUST_LOG=debug
environment variableTo Reproduce
All I do
flutter create frb_test && cd frb_test
cargo new --lib native
flutter pub add --dev ffigen && flutter pub add ffi
flutter pub add flutter_rust_bridge
flutter_rust_bridge = "1"
in cargo.tomlhello()
function insrc/api.rs
flutter_rust_bridge_codegen.exe -r native/src/api.rs -d lib/bridge_generated.dart --dart-decl-output lib/bridge_defini tions.dart
Expected behavior
No response
Generated binding code
OS
Windows10 22H2 19045.2846
Version of
flutter_rust_bridge_codegen
flutter_rust_bridge_codegen 1.82.3
Flutter info
Version of
clang++
No response
Version of
ffigen
^9.0.1
Additional context
src/api.rs
src/lib.rs
Cargo.toml
pubspec.yaml