Can we use "ImportC" used yet?
Imperatorn
johan_forsberg_86 at hotmail.com
Thu Oct 21 22:39:15 UTC 2021
On Thursday, 21 October 2021 at 22:23:50 UTC, data pulverizer
wrote:
> Hi,
>
> I'm getting an odd issue with ImportC when I import a header
> converted with `gcc -E -P ...` some of the types signatures in
> functions don't come through with their proper names but as
> `__tagXX` where `XX` is some number. It's got to the point
> where the type itself might get imported correctly, but the
> same type in a function might be `__tag28` or some other
> mangled name so when I create an instance of the proper type
> and try to call the respective function, I get a type error.
>
> Also, with some definitions in the C file, when I try to
> `#undef` something to get some conditional C definitions to be
> converted with `gcc -E -P ...`, nothing happens.
>
> Thanks.
Just remember you're using stuff that's currently worked on
More information about the Digitalmars-d-learn
mailing list