'cobpre' is not recognized as an internal or external command

Hello!!

I'm new to Visual Cobol for Visual Studio 2022 and trying to upgrade the existing Cobol program which was developed on Net Express long years back to Visual Cobol 9.0.

I just imported the program into Visual Studio 2022 and trying to build it. But getting below errors,

1> * Cobsql Integrated Preprocessor
1> * CSQL-I-008: Invoking cp Preprocessor
1> * CSQL-I-018: Invoking Sybase Precompiler/Translator
1> 'cobpre' is not recognized as an internal or external command,
1> operable program or batch file.
1> * CSQL-F-021: Precompiler did not complete, no list file present -- Terminating

Could you please help me to understand why I'm getting this errors and unable to find the 'cobpre' command anywhere in the program code.

Thanks,

Senthilkumar Mukunthu Thulasiram

  • 0  

    Hi Senthilkumar,

    cobpre is the name of the 32-bit Sybase preprocessor. There is another version for 64-bit called cobpre64.

    I believe you might have a mismatch of project configuration types and your current installation of the Sybase client.

    If your project type is 32-bit (x86) then it will be expecting the 32-bit version of Sybase client to be installed. Likewise if you are using a 64-bit project (x64) then it will be expecting the 64-bit version of the Sybase client.

    It sounds like you are compiling for 32-bit but you have the 64-bit Sybase installed. Either that or your PATH doesn't include the folder containing the "cobpre" executable. (i.e., it might be pointing to the 64-bit bin folder.

    Chris Glazier
    Rocket Software - Principal Technical Support Specialist
    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

  • 0 in reply to   

    Thank you chris!

    It is resolved the issue now.