Hello,
new to cppsharp.
It took me a while to get it compiled.
My first try generated the wrapper all right but I am missing the .native file (I used Basic.cs as base example)
I wrote a simple C++ project : MyMathFuncs
I have then saved MyMathFuncs.h and MyMathFuncs.lib in C:\Users\vince\Documents\projects\MyFirstCppSharpStuff\libsToWorkOn\
the override Setup() of ILibrary is like:
options.Headers.Add("MyMathFuncs.h");
options.Libraries.Add("MyMathFuncs.lib");
options.addIncludeDirs(@"C:\Users\vince\Documents\projects\MyFirstCppSharpStuff\libsToWorkOn\");
options.addLibraryDirs(@"C:\Users\vince\Documents\projects\MyFirstCppSharpStuff\libsToWorkOn\");
The process generates MyMathFuncs.cs but not the "native" one.
Therefore in another project using MyMathFuncs.cs the DllImport("MyMathFuncs.Native",... does not work.
any hint how to get the MyMathFuncs.Native created ?
My SetupPasses is as follow:
public override void SetupPasses(Driver driver)
{
if (driver.Options.IsCSharpGenerator)
driver.Options.GenerateAbstractImpls = true;
driver.Options.GenerateVirtualTables = true;
driver.Options.GenerateCopyConstructors = true;
driver.Options.MarshalCharAsManagedChar = true;
driver.Options.GenerateProperties = true;
driver.Options.GenerateConversionOperators = true;
}
Thanks.