Open pmelick opened 7 years ago
@ddobrev Any idea about this one? Might be related to the recent template changes.
@pmelick What Git revision are you working with?
Latest commit is 8b230bdf07a1ce352e441f2cc634ac7b84c82618, pulled on Monday.
@pmelick may I ask you to debug this one? I admit I have no idea how it happened because Class.Specializations only throws an exception when the class it's called on is not dependent. The method in the stack trace on the other hand only works with dependent classes.
Thanks for the response @ddobrev. Happy to help debug. Can you tell me how I would go about finding which native class is causing the problem?
You could just run it in the debugger. When it crashes, you'll be able to see the names and headers of all involved declarations.
I get an exception Only dependent classes have specializations while trying to generate C# bindings for a C++ library. I'm not sure how to tell which class(es) are triggering the error.
I did have to comment out add_argument(-fno-rtti) in src\CppParser\Parser.cpp as in https://github.com/mono/CppSharp/issues/768
I also had to add the clang include dirs from
/opt/clang+llvm-3.8.0/
I don't know if the override warnings during the parser are related.
Thanks very much for your help
OS: Ubuntu 14.04
Target: Clang
Used settings:
Stack trace: