I am trying to include the generated .rsg file in my _reg.rss file. But I get the error from the emulator that the file could not be found. To check on the cause of the error, I created a dummy s60 UI project and by default the #include statement for the .rsg file was generated inside the _reg.rss file. And when I compiled the project, it compiled without any issues. I made sure that I closely replicated the structure of the resource files and .mmp file in the dummy project, in my project, including the syntax and the directory paths for system files. But when I recompiled, I got the same error indicating that the .rsg file could not be found. I did a file search on my system to see whether the .rsg file for my project was actually generated, and I could see that it had been generated inside \epoc32\include, which is one of the paths specified for SYSTEMINCLUDE in my .mmp file.
I would appreciate any suggestions to resolve this. BTW, I have checked for spelling errors and have eliminated that possibility as well.