Skip to main content
Dominique Sacre
Rocketeer
May 27, 2011 6:56 PM UTC

Compilation ideas for large projects; Linker response file cbllds.lnk

[Migrated content. Thread originally posted on 26 May 2011]

Hi,

I am exploring the possibilities of how to compile the cobol/procobol files on windows platform. Any leads on the approach will be helpful.
Does any one know if its possible to change the name of the default link response file that is generated from cblnames utility.

I want to explore the possibility of doing parallel compiles so that its faster. If the same file name is generated then I will have issues.

Thanks
PTeng

    1 reply

    Dominique Sacre
    Rocketeer
    May 27, 2011 7:06 PM UTC

    [Migrated content. Thread originally posted on 26 May 2011]

    Hi,

    I am exploring the possibilities of how to compile the cobol/procobol files on windows platform. Any leads on the approach will be helpful.
    Does any one know if its possible to change the name of the default link response file that is generated from cblnames utility.

    I want to explore the possibility of doing parallel compiles so that its faster. If the same file name is generated then I will have issues.

    Thanks
    PTeng
    Hi,

    You can use the -o option of cblnames to specify the filename eg:-

    C:\\temp>cblnames -v -s -otest adsamp.obj mfadder.obj
    Micro Focus Net Express - CBLNAMES utility
    Version 5.105.0076 Copyright (C) 1984-2008 Micro Focus (IP) Limited.

    Scanning object files:-
    adsamp.obj
    found public -> ADSAMP
    mfadder.obj
    found public -> MFADDER
    adis.obj
    found public -> ADIS
    adisinit.obj
    found public -> ADISINIT
    adiskey.obj
    found public -> ADISKEY
    adisdyna.obj
    found public -> ADISDYNA
    Creating test.obj
    Creating test.lnk
    CBLNAMES completed

    However most people use cbllink which runs cblnames and link in one step. This automatically generates a unique name:-

    C:\\temp>cbllink -v adsamp.obj mfadder.obj
    Micro Focus Net Express - CBLLINK utility
    Version 5.105.0076 Copyright (C) 1984-2008 Micro Focus (IP) Limited.

    Executing:cblnames /N /Ocbllds00002D88 /FS /V /S /MADSAMP adsamp.obj mfadder.obj


    Scanning object files:-
    adsamp.obj
    found public -> ADSAMP
    mfadder.obj
    found public -> MFADDER
    adis.obj
    found public -> ADIS
    adisinit.obj
    found public -> ADISINIT
    adiskey.obj
    found public -> ADISKEY
    adisdyna.obj
    found public -> ADISDYNA
    Creating cbllds00002D88.obj
    Creating cbllds00002D88.lnk
    CBLNAMES completed

    Executing:link -subsystem:console -base:0x400000 -nodefaultlib @cbllds00002D88.
    lnk -out:adsamp.exe cblrtssi.lib oopss.lib msvcrt.lib kernel32.lib

    Microsoft (R) Incremental Linker Version 6.00.8168
    Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

    adsamp.obj
    mfadder.obj
    adis.obj
    adisinit.obj
    adiskey.obj
    adisdyna.obj
    cbllds00002D88.obj
    Creating library adsamp.lib and object adsamp.exp

    CBLLINK completed

    Regards
    David