-
Notifications
You must be signed in to change notification settings - Fork 253
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
[Continued] Cannot find reference for enum class member in Android build system, but command line compile is fine. #1201
Comments
I noticed that in above Android build rdm log, there are libcxx errors. But I didn't add libcxx support in my Android.mk file. So this must be inherited from Android base build system. I manually deleted libcxx lines from my compile_commands.json file, and rc -J again. This time I got the following, note there's "handleInclude failed" print.
Is this a bug or I did something wrong? When I delete libcxx from compile_commands.json, I still cannot find reference for enum class member, NOR typedef'ed enum member which used to work. I suspect this is due to that "handleInclude failed" error. |
Sorry about the long delay. I honestly can't really see what might be causing this. There are some terrible hacks around the whole: Can't decide which of these symbols are right for me But I can't really see what Android would do to impact that. I suspect that -nostdlibinc is causing a problem. I think your best bet is to try to bisect between all of the many additional command line options until it starts working. |
This is a continued topic for issue #1197
This is a issue found in C++ project in Android, where I cannot find all reference for enum class member, but typedef'ed enum member is working perfectly. @cslux once made a sample C++ source code. I tested in command line compile with g++:
rc -c g++ -std=c++11 -Wall -Wextra test.cpp -o test
It turns out working fine in finding references.
So I modify source code to build it in Android build system:
In inc, there's test.h header file:
In src, we have test.cpp source file:
And here's what I got:
So the problem tends to be in Android build itself. In order to find the differences, I collected both rdm logging:
Now, I'm seeking help from compiler and RTags expert, can we conclude something from both logging.
I really like RTags, I wish I could solve this problem. Thank you so much.
The text was updated successfully, but these errors were encountered: