[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug binutils/11240] New: Windres breaks down with spaces in rc sour
From: |
Nick Clifton |
Subject: |
Re: [Bug binutils/11240] New: Windres breaks down with spaces in rc source |
Date: |
Fri, 05 Feb 2010 14:09:14 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Thunderbird/3.0.1 |
Hi Niki,
metal png DISCARDABLE "../source/metal.png"
"temple of the ancestors" fxp DISCARDABLE "../presets/synthetic
environments/temple of the ancestors.fxp"
> when compiled with binutils 2.20, I get
>
> Linker error, could not find resource "metal.pngtempleoftheancesteors"
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is more of a feature than a bug. What is happening is that windres
is concatenating two double-quote enclosed strings into one string, just
as a C compiler would do. So:
"foo"
"bar"
is treated as if you had typed:
"foobar"
The simple way around this is to use single quotes for the second
string, as in:
metal png DISCARDABLE "../source/metal.png"
'temple of the ancestors' fxp DISCARDABLE
"../presets/syntheticenvironments/temple of the ancestors.fxp"
Cheers
Nick