This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error COBOLLINK cannot find C runtime library

When I try execute from IDE VCVS2019 a solucion, apear this message

Execute 

cblms -Q

and show me

Micro Focus COBOL - Configuration Utility for the Microsoft Build Tools & SDK
8.0.0.84 (C) Copyright 1984-2023 Micro Focus or one of its affiliates.


Windows SDK
location = c:\Program Files (x86)\Windows Kits\10
version = 10.0.19041.0

Microsoft Build Tools
location = c:\Program Files (x86)\Microsoft Visual Studio\2019\Professional
version = 14.29.30133

How can I resolve?.

  • This normally occurs when you switch between using Visual COBOL for Eclipse and Visual COBOL for Visual Studio.

    For Visual COBOL V8.0 the locations have been moved to be under the Visual COBOL product.
    On my system the setting for Visual COBOL for Visual Studio 8.0 is the following:

    The easiest way to reset this is to remove the current setting and then reinstall the Visual COBOL for Visual Studio product.

    cblms -R

    and then uninstall the Visual COBOL product and then reinstall it.

    Chris Glazier
    Global Technical Support | OpenText


    If you found this post useful, give it a “Like” or click on "
    Verify Answer" under the "More" button

  • Hi,

    Why when I try to run or recompile some solutions I get this COBOLLINK not found error, and with others it doesn't happen?

    I don't think the solution is to run "cblms -R" and then uninstall VC80 and reinstall it, because I have already done it and the same thing happens.

  • If you are getting the error about cannot find the C run-time library it is usually because the cblms settings are not pointing to the correct directory which contains the required files that the linker is looking for. Are the programs where you do not get this error being compiled to .EXE or .DLL? If they are being compiled to .INT/GNT then there is no link step involved and the error would not occur.

    Check the locations being pointed at by cblms and see if they actually contain the Microsoft tools. Check the locations that I show in my screenshot above and see if they are there. If they are then you can change the location using cblms.

    You can find the link to the complete KB article here.

    Chris Glazier
    Global Technical Support | OpenText


    If you found this post useful, give it a “Like” or click on "
    Verify Answer" under the "More" button