In the accompanying article, Borland C++ 4.5 - Running TLINK from the IDE we show how you can use the new version of TLINK instead of using the linker that's built into the Integrated Development Environment (IDE). As we mention in that article, you can use the $RSP() and $TLINKRSP macros to pass a large number of parameters to TLINK via a temporary response file. However, if you specify a complex set of options for other external programs that you launch as IDE tools, you may occasionally exceed the allowable length of 128 characters for command line information.
Fortunately, you can increase the size of the IDE's command-line transfer buffer and make room for complex parameter lists. To do so, you'll need to add a "CmdLen=" statement to the IDE's configuration file, BCW.INI.
To add the statement, launch Windows Notepad by double-clicking on its icon. Choose Open... from the File menu, and then enter \BC45\BIN\BCW.INI in the filename entry field.
When the IDE configuration file appears, locate the [Transfer]
section of the file. Immediately following the section name, enter
the text
CmdLen=256
If there isn't a [Transfer] section in your BCW.INI file,
enter
[Transfer]
immediately before entering the CmdLen statement. To save this change, choose Save from the File menu.
Now, you'll be able to pass long, complicated parameter
lists to any of the tools you use from the IDE. With a new limit
of 256 characters, you won't have to worry about seeing
error messages relating to the length of the options you're
passing to external programs.
Copyright (c) 1996 The Cobb Group, a division of Ziff-Davis Publishing Company. All rights reserved. Reproduction in whole or in part in any form or medium without express written permission of Ziff-Davis Publishing Company is prohibited. The Cobb Group and The Cobb Group logo are trademarks of Ziff-Davis Publishing Company.