COBCH0053 Directive /R invalid or not allowed here

0 Likes
over 1 year ago

Problem

The build fails to compile a resource (.rc) file if it was imported from a Net Express project using the Import Net Express Project feature. Here is the error message:

COBCH0053 Directive /R invalid or not allowed here

Solution

The problem is caused by the Import Net Express Project feature that sets the wrong Build Action value for .rc files. It sets to 'Compile', which is to compile COBOL sources.

The correct Build Action value for .rc files is 'Resource Compile'.

 
ResourceCompile.png

 

This issue was reported in RPI 1119877 against Visual COBOL 5.0, and the workaround is to change the Build Action to Resource compile.

This is now fixed in Visual COBOL 6.0.

 

Comment List
Anonymous
Related Discussions
Recommended