www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - importC error:

reply Dakota <dakota gmail.com> writes:
```sh
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/m
ch/vm_types.h(168): Error: variable `lib_test.mach_vm_range_recipe_v1_t.range`
- no definition of struct `mach_vm_range`
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/m
ch/vm_types.h(168):        see
https://dlang.org/spec/struct.html#opaque_struct_unions
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/m
ch/vm_types.h(168):        perhaps declare a variable with pointer type
`mach_vm_range*` instead
```
Aug 07
parent Steven Schveighoffer <schveiguy gmail.com> writes:
On Thursday, 8 August 2024 at 06:34:43 UTC, Dakota wrote:
 ```sh
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/m
ch/vm_types.h(168): Error: variable `lib_test.mach_vm_range_recipe_v1_t.range`
- no definition of struct `mach_vm_range`
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/m
ch/vm_types.h(168):        see
https://dlang.org/spec/struct.html#opaque_struct_unions
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/m
ch/vm_types.h(168):        perhaps declare a variable with pointer type
`mach_vm_range*` instead
 ```
I ran into this exact problem from that header a few days ago! https://issues.dlang.org/show_bug.cgi?id=24718 -Steve
Aug 30