Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3EB8798A.7070803@fangorn.ca>
Date: Tue, 06 May 2003 23:12:10 -0400
From: Mark Blackburn <marklist@fangorn.ca>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030401
X-Accept-Language: en
MIME-Version: 1.0
To: =?ISO-8859-1?Q?Mikael_=C5sberg?= <mikas493@student.liu.se>
Cc: cygwin@cygwin.com
Subject: Re: Windres parse error
References: <002201c312d5$43817f00$70eaec82@mindcooler>
In-Reply-To: <002201c312d5$43817f00$70eaec82@mindcooler>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Mikael Åsberg wrote:

>Hello, I've just started trying to a "convert" a win32 gui program (written
>in c++) to the cygwin tools. When I finally got all the source files to
>compile without errors, windres chokes on the .rc-file which was generated
>using MSVC++ 6.0. The first error is:
>
By the way, reduced test cases are generally appreciated by all...

>windres: mindedit.rc:162: parse error
>Line 162 in mindedit.rc looks like:
>    LTEXT           "Enter line number to go to:",IDC_STATIC,6,10,84,8
>
It looks like windres doesn't like IDC_STATIC. Maybe MSVC defines it in 
the header files.
The w32api header files for cygwin/mingw don't define it.
Maybe put this in your rc files:
#ifndef IDC_STATIC
#define IDC_STATIC (-1)
#endif

>the program to build. But then windres finds another parse error on line
>191, which looks like this:
>ID_TOOLBAR TOOLBAR DISCARDABLE  16, 16
>

This one looks like a bigger problem. It doesn't look like windres has 
the TOOLBAR keyword implemented. So someone has to submit a patch to 
binutils (where windres lives) to implement it.

>
>I really don't know where to go from here...anyone know how to fix these
>errors?
>
>// Mikael
>  
>



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

