mono/CppSharp

Unwanted copy constructor

Opened this issue · 0 comments

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...