Open vasicvuk opened 2 years ago
No, it's a bug we have. We haven't got to it mostly because It's harmless - unless you lack any actually important classes. Do you?
@ddobrev actually I don't see any class generated related to modsecurity directly. So I guessed that this empty classes are for Modsecurity but for some reason empty.
@vasicvuk they wouldn't be in Std
. Your problem is actually different, I can see now. Our headers in the settings only take file names. All of your paths must go to include dirs instead: that is, as if you were writing C++.
@ddobrev Thanks, this helped in terms that the new .cs file is generated, but unfortunately, I still have a few issues.
First in Std.cs now I have UnorderedMultimap
namespace which uses Std.Hashtable
which is not generated.
Second in the LibModSecurity.cs I have 235 errors, duplicate methods, nonexisting namespaces and a lot of https://docs.microsoft.com/en-us/dotnet/csharp/misc/cs0208?f1url=%3FappId%3Droslyn%26k%3Dk(CS0208)
I have also tried to generate C
wrapper instead but then I am not getting any DllImport
statement.
@vasicvuk you can't generate a C wrapper for C++. This setting is for the source language. Please report bugs about the rest. We'll take a look whenever we can. If you need faster resolution, please contact our support or try fixing them yourself with our help.
I switched target language. Thanks I will contact support
Brief Description
My idea was to use CppSharp to generate PInvoke classes for ModSecurity c++ library.
OS: Windows / OS X / Linux (include version and/or distro)
Ubuntu 20.04
My setup looks like this:
But I get a lot of empty Std.cs classes. Here is the generated code
Stack trace or incompilable generated code
Is there something I am doing wrong?
Thanks