error: expected unqualified-id before '<' token [build] 2 | <RCC> [build] | ^
Unsolved
General and Desktop
-
When I compile a qt-cpp project with cmake, i add resources to the executable file with resource.qrc, but cmake raise the error:"error: expected unqualified-id before '<' token
[build] 2 | <RCC>
[build] | ^"the content of my resource.qrc is below:
<RCC>
<qresource prefix="images">
<file>images/comics_2.png</file>
</qresource>
<qresource prefix="icons">
<file>icons/download.ico</file>
<file>icons/start.png</file>
<file>icons/start.ico</file>
<file>icons/site_logo.png.icon.ico</file>
</qresource></RCC>
-
Please show your CMakeLists.txt. Did you enable CMAKE_AUTORCC?