Error compiling .rc file in CW Pro 8.3

Error compiling .rc file in CW Pro 8.3

Post by jonhoyl » Fri, 30 Jan 2004 09:23:09


I am compiling an application in CW Pro 8.3, which was previously
built with CW Pro 5 with no problems. I'm gotten everything to
compile, except the .rc file (which is compiled by the MW WinRC
compiler). I am getting multiple errors, each reading:

Error : label '1282' redefined
MyApp.rc line 187 END

with the '1282' also as '1283', '1284', etc. The use of END occurs in
the .rc file for resources, such as:

ASIMenu MENU
BEGIN
POPUP "&Help"
BEGIN
MENUITEM "Online &Help\tF1", IDM_SHOW_HELP
MENUITEM SEPARATOR
MENUITEM "About My Company...", IDM_ABOUT_COMPANY
MENUITEM "&About MyApp...", IDM_ABOUT
END
END

I looked at the File Mappings settings for .rc files, and the CW 8
appear the same as those for Cw 5, except starting in CW 8 there is
also an "Edit Language:" popup which strangely defaulted to "Balloon
Help". Changing it to "None" didn't change the problem.

The only other possibility I can think of is that I am #including
"windows.h", but this was the same as in Pro 5, so I don't think it
could be it.

Any help would be appreciative.


Regards,
Jonathan Hoyle
Gene Codes Corporation
 
 
 

Error compiling .rc file in CW Pro 8.3

Post by MW Ro » Sat, 31 Jan 2004 04:43:18

In article < XXXX@XXXXX.COM >,



Hi Jon,

This looks like a problem in a file being included in the .rc file so
you have an end without a begin or it is being parsed in the middle of
something. I don't think line endings should matter but you might
want to use unix line endings on the .rc file if that isn't there.

If you can send me more information I'd be happy to look at this, just
something I can compile would be all I'd need.

Ron

--

Metrowerks, maker of CodeWarrior - "Software Starts Here"
Ron Liechty - XXXX@XXXXX.COM - < http://www.yqcomputer.com/ >

 
 
 

Error compiling .rc file in CW Pro 8.3

Post by jonhoyl » Sun, 01 Feb 2004 06:29:02

> Hi Jon,

Hi Ron,

Again, it's the Altura headers. The "END" was not an issue, it's
simply the last line in the .rc file, so the WinRC compiler points to
it as the end of its parsing. The problem was the re-use of the
numbers 1282, 1283, etc. for resources, as these are now being used by
Mac2Win.

Thanks!

Jonathan Hoyle
Gene Codes Corporation