Announcement

Collapse
No announcement yet.

RC.EXE Error!!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • RC.EXE Error!!

    I can't compile RC files that use "#INCLUDE". I get a "fatal error RC1021: invalid preprocessor command 'INCLUDE' ". If I remove the reference to the resource.h file (#INCLUDE "resource.h"
    ) then it compiles. Any idea as to what could cause this? Could the resource.h file be corrupt? I have no problems compiling PowerBASIC code or creating PBR files from RES files, I just can't get the RC.EXE to make a RES file when I reference the resource.h file
    Thanks,

    Doug Gamble
    [email protected]

  • #2
    All the directives to RC.EXE are CASE SENSITIVE

    Wrong:
    #INCLUDE

    Right:
    #include

    Note: this happens to me a lot because I use the PB IDE's keyword capitalization option, and edit my resource files with PB.

    MCM
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      The resource compiler is case sensitive, I believe. Use #include and watch out about editing RC files in the PB IDE where your case rules will change the "include" according to your handling of case for Basic keywords.

      A RC file edited in the PB Ide will have Include and End goofed up, perhaps more.

      HTH

      Chuck

      Comment


      • #4
        The IDE is not intended for editing resource scripts, but it can be used to successfully do so, provided you set the "keywords caps" to "no change" in the Options dialog.


        -------------
        Lance
        PowerBASIC Support
        ( mailto:[email protected][email protected]</A> )
        Lance
        mailto:[email protected]

        Comment

        Working...
        X