C++ indexing fails as the size of the file is too big
-
Do you have a screenshot (or better yet, copy and paste the text) where it 'crashing' during building? Your screenshot is showing the C++ indexer skipping a file (I'm seeing just one line in your screenshot, maybe there's more you didn't include). I have seen this for auto-generated source files from resource files (qrc) and just ignore them since I don't see the need for them to be indexed. What happens when you try to build the project?
-
This is an output of your IDE, not of your compiler and linker. It simply tells you that the IDE-internal indexer will ignore a file because it's too big. So you can't find the symbols in this file, nothing more.
-
When I try to build the project, the application output says The program finished unexpectedly - ss attached
and in the general logs it says the file is too big (the earlier ss)
@Tanushree This is output from your attempt to run your program, not from the build process?
-
When I try to build the project, the application output says The program finished unexpectedly - ss attached
and in the general logs it says the file is too big (the earlier ss)
@Tanushree said in C++ indexing fails as the size of the file is too big:
When I try to build the project, the application output says The program finished unexpectedly - ss attached
This is no output from the build process but from your debugging/run session as @artwaw already pointed out.
When your program crashes you normally use a debugger and fix the crash... -
No Qt version info. Check the following out
https://bugreports.qt.io/browse/QTCREATORBUG-17534
https://doc.qt.io/qtcreator/creator-clang-codemodel.html
To avoid out-of-memory crashes caused by indexing huge source files that are typically auto-generated by scripts or code, the size of files to index is limited to 5MB by default. To adjust the limit, edit the value for the Do not index files greater than check box. To index all files, deselect the check box.