Closed OmidID closed 5 years ago
I don't know much about Urho3D, what are the steps to reproduce this on my side?
You can download it from the link below:
https://sourceforge.net/projects/urho3d/files/latest/download
Then you can find headers in include
directory.
Actually Egor Bogatov working on a new project base on CppAst and I using that. https://github.com/EgorBo/CppPinvokeGenerator
I used simple parameters and that set
var options = new CppParserOptions();
options.ConfigureForWindowsMsvc(CppTargetCpu.X86_64);
options.AdditionalArguments.Add("-std=c++17");
options.IncludeFolders.Add(outputFolder);
options.IncludeFolders.Add(Path.Combine(outputFolder, "Urho3D", "ThirdParty"));
CppCompilation compilation = CppParser.ParseFile(Path.Combine(outputFolder, @"Urho3DAll.h"), options);
Fixed by 474d568 available in 0.4.0+
I try to bind Urho3D header files and I got an error
Error:
System.ArgumentException: 'An item with the same key has already been added. Key: c:@T@RPCNOTIFICATION_ROUTINE'
It's weird I can see in there is a checking before add new item to typedefs. I cannot understand why it's will be pass the checking duplicate item! https://github.com/xoofx/CppAst/blob/0.3.0/src/CppAst/CppModelBuilder.cs#L1359