Skip to content

Unwanted copy constructor #1882

Open
Open
@TheNeikos

Description

@TheNeikos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions