[Qt-interest] rcc -name option: when required?

Constantin Makshin cmakshin at gmail.com
Mon Aug 16 10:47:59 CEST 2010


.cpp files generated by rcc contain several functions (to initialize and free resources), so if there are more than one resource file, you'll get linking error. When the resource name is specified, rcc appends it to names of these functions, preventing name clashes.

On Friday 06 August 2010 01:17:11 Penn Taylor wrote:
> 
> When is the "-name" option needed with rcc? Does it prevent clashes when 
> there are multiple resource files in a project?
> 
> The documentation for rcc is a little sparse, but I notice that 
> QtCreator always sets this option when it calls rcc. I'm using SCons to 
> build a project with multiple resource files; some of them are 
> mysteriously unavailable. Could failure to use the -name option be to blame?
> 
> -Penn Taylor



More information about the Qt-interest-old mailing list