Replies: 1 comment 1 reply
-
Yes, just set the TargetTriple, check https://github.com/mono/CppSharp/blob/main/src/CppParser/ParserGen/ParserGen.cs#L50 and https://github.com/mono/CppSharp/blob/main/src/CppParser/ParserGen/ParserGen.cs#L158. It takes LLVM/Clang triples. You will also need the Linux headers, see https://github.com/mono/CppSharp/releases/download/CppSharp/headers.zip for what we use. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
Is it possible to run CppSharp on Windows platform, but bet the output .cs file with code which imports functions from *.so file?
E.g. I have an .NetCore application, which theoretically can be run on both Linux and Windows. I import classed and functions on Windows using CppSharp via generated code
I suppose something like this should be for Linux, however maybe entry points should be different, as far as I can say by
nm -D
outputSo, the question is how can I setup the target platform for the generated .cs file?
Beta Was this translation helpful? Give feedback.
All reactions