Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unwanted copy constructor #1882

Open
TheNeikos opened this issue Dec 5, 2024 · 0 comments
Open

Unwanted copy constructor #1882

TheNeikos opened this issue Dec 5, 2024 · 0 comments

Comments

@TheNeikos
Copy link

TheNeikos commented Dec 5, 2024

Hello!

I'm using CppSharp to generate some C# bindings that reference the glibc "semaphore.h" header (among others).

This seems to work fine, but the all the C structs have an unwanted cctor in their generated code:

            [SuppressUnmanagedCodeSecurity, DllImport("Layout", EntryPoint = "_ZN12MyNameC2ERKS_", CallingConvention = __CallingConvention.Cdecl)]
            internal static extern void cctor(__IntPtr __instance, __IntPtr _0);

This seems odd, as on my colleagues machine this is not being generated.

We do have a different setup, as we are using different linux distributions. I am not sure what could be causing this problem.

I am using CppSharp 1.1.5.3168

I also don't have any .so named layout or similar, so I am also not sure where this might be coming from...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant