[Bug 773] New - wrc compiler does not reproduce rc include path quirk

wine-bugs at winehq.com wine-bugs at winehq.com
Thu Jun 6 19:14:23 CDT 2002


http://bugs.winehq.com/show_bug.cgi?id=773

*** shadow/773	Thu Jun  6 19:14:23 2002
--- shadow/773.tmp.16103	Thu Jun  6 19:14:23 2002
***************
*** 0 ****
--- 1,55 ----
+ +============================================================================+
+ | wrc compiler does not reproduce rc include path quirk                      |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 773                         Product: Wine                    |
+ |       Status: UNCONFIRMED                 Version: unspecified             |
+ |   Resolution:                            Platform:                         |
+ |     Severity: normal                   OS/Version: All                     |
+ |     Priority: P1                        Component: wine-winelib            |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: wine-bugs at winehq.com                                         |
+ |  Reported By: tom at platte.com                                               |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |    Milestone: TargetMilestone: ---                                         |
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ It appears that when the Windows rc compiler includes a file, it temporarily
+ adds the directory of that file to the include path.  Once it is done processing
+ the file, the directory is removed from the include path.
+ 
+ Let's say that you have three files in a wrcbug directory:
+ 
+ bar/b.rc
+   /* b.rc */
+   #include "foo/a.rc"
+ 
+ foo/a.rc
+   /* a.rc */
+   #include "a.rch"
+ 
+ foo/a.rch
+   /* a.rch */
+ 
+ Now on Windows, the rc compiler runs fine:
+ C:> rc bar\b.rc
+ 
+ But on Linux, the Daily Debian Wine wrc compiler chokes:
+ $ wrc bar/b.rc
+ bar/b.rc:3:1: Error: Unable to open include file a.rch
+ 
+ If you add the file:
+ 
+ foo/baz/c.rc
+   /* c.rc */
+ 
+ And append to bar/b.rc the line:
+   #include "baz/c.rc"
+ 
+ Then the Windows rc compile will fail.  So once rc has finished processing
+ foo/a.rc, it removes "foo" from the include path.
+ 
+ Now normally, I would have foo/a.rc include "foo/a.rch" not "a.rch", and then
+ add a -Iwrcbug to the rc and wrc command lines.  But if you edit foo/a.rc with
+ MS VisualStudio, it will change the include of "foo/a.rch" back to "a.rch"!
\ No newline at end of file



More information about the wine-bugs mailing list