Qt工作笔记- 解决cc1plus.exe: error: out of memory allocating
生活随笔
收集整理的這篇文章主要介紹了
Qt工作笔记- 解决cc1plus.exe: error: out of memory allocating
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
原文地址如下:
https://blog.csdn.net/liukang325/article/details/53159446
?
QT中增加資源文件過大時,會編譯不過,報錯:
cc1plus.exe: out of memory allocating 1073745919 bytes- ?
使用qrc資源文件,也就是在QT的工程中添加資源文件,就是添加的資源文件(如qrc.cpp)會直接被存放到靜態(tài)數(shù)組中,從而一直占用內(nèi)存,使內(nèi)存的利用率不高。有的時候如果資源過大,可能編譯都無法通過,會造成out of memory的錯誤。
解決方法:?
在工程PRO文件中,添加:
- 1
總結(jié)
以上是生活随笔為你收集整理的Qt工作笔记- 解决cc1plus.exe: error: out of memory allocating的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux学习笔记-协同进程基础
- 下一篇: Qt工作笔记-使用QGraphicsIt