The .rsg file is a header file describing a resource. If you have an .rss file in your project and you have not excluded the .rss from the build (check this from the file's Properties, right click on file and then towards end of menu), it should be automatically built and the .rsg file should be generated.
The build output in the Console view should contain something like:
and ofcourse no errors.
'Building file: ../aif/rsgTestaif.rss'
'Invoking: Resource Compiler'
perl.exe -S epocrc.pl -u -DLANGUAGE_sc -I"C:\Users\Carbide2\rsgTest\inc" -I"C:\Users\Carbide2\rsgTest\data" -I- -I"C:\Symbian\8.0a\S60_2nd_FP2_CW\epoc32\include" -o"C:/Symbian/8.0a/S60_2nd_FP2_CW/EPOC32/RELEASE/WINSCW/UDEB/Z/system/apps/rsgTest/rsgTestaif.rsc" -hC:\Symbian\8.0a\S60_2nd_FP2_CW\EPOC32\include\rsgTestaif.rsg ../aif/rsgTestaif.rss
The rest of the build then will use the .rsg as just an other include file and hence one of your include directory entries should point to the directory where the .rsg file can be found, in the above case in C:\Symbian\8.0a\S60_2nd_FP2_CW\Epoc32\include.
So pls check
- that you have the .rss and it is not excluded and has a Resource compiler tool associated to it in the C/C++ Build view (normally do not modify the default settings of the tool)
- that there are no build errors when building the .rss file
- that you have an include dir entry for the corresponding directory