can't open file 'reg52.h'

When I build my program, error 318 occurs which stated ' can't open file 'reg52.h' where indeed this file is already provided.

  • Are you using the correct format for #include:

    #include &ltfile-in-INC-folder&gt
    Or:
    #include "file-in-current-folder"

    Are you using any INCDIR command-line options, or any 'Include Paths' set in the uVision options?

    Have you checked the settings in Project/File Extensions, Books and Environment?
    Look on the Environment Setup tab, and verify that the 'INC Folder' setting is correct or, if you have 'Use Settings from TOOLS.INI' checked, verify that the file is in a subfolder called 'INC' below the "PATH" specified in the [C51] section.

More questions in this forum