DOCUMENT:Q135287 02-AUG-2001 [visualc] TITLE :BUG: Visual C++ Doesn't Generate Dependencies for .RSC Files PRODUCT :Microsoft C Compiler PROD/VER:MACINTOSH:2.0 OPER/SYS: KEYWORDS:kbide kbHWMAC kbVC ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual C++, Macintosh Cross-Development Addon, version 2.0 ------------------------------------------------------------------------------- SYMPTOMS ======== If a .RSC file, which is an output file of a resource compiler, is included in a .R file, which is a Macintosh resource file, using either of the following statements, the Visual Workbench will not generate dependencies for it: - include ; -or- - INCLUDE ; For example, if you have a resource file that has the following include statements in it: // resource.r #include "mrc\types.r" #include "mrc\balloons.r" include "wlm.rsc"; include "commdlg.rsc"; #include "ftab.r" then, when generating the dependencies for this file, the Visual Workbench will not include WLM.RSC or COMMDLG.RSC in the dependencies list. If any of these .RSC files or the .RC/.R file used to generate the .RSC file changes, the .RSC file will not be rebuilt. Dependencies are correctly generated for files included with #include, such as, MRC\TYPES.R, MRC\BALLOONS.R, and FTAB.R. CAUSE ===== Dependencies are not generated for resources included with the INCLUDE statement because while it is legal to include *.RSC using the include syntax, the Visual C++ build system cannot handle this type of .RSC build. WORKAROUND ========== Use one of the following workarounds: - Remove the include(s) from the .r file and add the .rsc file(s) to the Project/Files or Project/Settings/Link/Object/Library Modules list. -or- - Keep track of the .RSC files that are included in the .R file and explicitly build the files if either the .RSC files or the .R/.RC files used to generate the .RSC files change. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. Additional query words: ====================================================================== Keywords : kbide kbHWMAC kbVC Technology : kbVCsearch kbHWMAC kbOSMAC kbAudDeveloper kbVCXDev200Mac Version : MACINTOSH:2.0 Issue type : kbbug ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2001.