-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clang_EnumDecl_isScoped not found #43
Comments
Which version of |
I cloned the git repo, so I'm on the last commit of the master branch. |
Can't reproduce this on master + Windows. Are you running on Linux or MacOS maybe? |
Also inspecting the local libclang.dll file and I can see the symbol |
I'm on windows. and you're right the function is exported. this is very strange. i think it has to be something related to .net platform maybe? |
Can you share your csproj? |
yes sure |
Ok, so that's because you need to add this line to your csproj: <PropertyGroup>
<!-- Workaround for issue https://github.com/microsoft/ClangSharp/issues/129 -->
<RuntimeIdentifier Condition="'$(RuntimeIdentifier)' == '' AND '$(PackAsTool)' != 'true'">$(NETCoreSdkRuntimeIdentifier)</RuntimeIdentifier>
</PropertyGroup> as it is done in the tests, otherwise it won't copy the correct libclang DLL and might start to use another mismatching arch on your path... |
thanks ! that solved the problem ! |
Hi,
after a long day, I finally managed to supply the right arguments for the MingW64 8.1.0 Include folders and try to parse a header based on that.
however I think the Enum parser is broken (all other parsers work fine) , and when the parser sees an enum i get this exception in the visual studio 2019 debugger :
the same error is produced if I try the sample from the main page with an enum in it:
any ideas?
The text was updated successfully, but these errors were encountered: