dart-lang / native

Dart packages related to FFI and native assets bundling.
BSD 3-Clause "New" or "Revised" License
115 stars 40 forks source link

ffigen4.x 5.x genearted code compile problem #276

Open joyhope opened 2 years ago

joyhope commented 2 years ago

I meet the ffigen generated code compile problem. The result is similar to I using the dart_asla

https://github.com/maks/dart_alsa. If using 3.x, everything is OK, if using 4.x later

the data structure is missing.

../lib/play_audio.dart:105:28: Error: Undefined name 'snd_pcm_access_t'. paramsPtr.value, a.snd_pcm_access_t.SND_PCM_ACCESS_RW_INTERLEAVED);

what should I changed from 3.x upgrade to the later version.

liamappelbe commented 2 years ago

Can you send your config file and the input C headers so that we can reproduce this?