This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: windres handles #include suffixes?
- From: Kai Tietz <ktietz70 at googlemail dot com>
- To: Alon Bar-Lev <alon dot barlev at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 27 Feb 2012 23:51:57 +0100
- Subject: Re: windres handles #include suffixes?
- Authentication-results: mr.google.com; spf=pass (google.com: domain of ktietz70@googlemail.com designates 10.60.4.227 as permitted sender) smtp.mail=ktietz70@googlemail.com; dkim=pass header.i=ktietz70@googlemail.com
- References: <CAOazyz0F++D6VCCNqKYDJxVuWJTbpnLxshu890qGnBtc1zDWVA@mail.gmail.com>
2012/2/27 Alon Bar-Lev <alon.barlev@gmail.com>:
> Hello,
>
> I have the following example:
>
> master.rc
> ---
> #include <winresrc.h>
> #include "slave1.rc"
> #include "slave2.rc.h"
> ---
>
> slave1.rc
> ---
> STRINGTABLE
> LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL
> BEGIN
> 1 "SLAVE1"
> END
> ---
>
> slave2.rc
> ---
> STRINGTABLE
> LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL
> BEGIN
> 2 "SLAVE2"
> END
> ---
>
> Output is:
> ---
> LANGUAGE 9, 0
>
> STRINGTABLE MOVEABLE PURE DISCARDABLE
> BEGIN
> ?1, "SLAVE1"
> END
> ---
>
> Where did slave2 content gone?
> How come windres handles preprocessor output differently?
> If I rename slave2.rc.h to slave2.rc it works.
>
> Is this by design? If it is, what is the reason?
>
> Thanks!
> Alon.
AFAIR this is by design. windres parser ignores content coming from
.h and just looks for resource-data in .rc files.
Regards,
Kai