www.digitalmars.com         C & C++   DMDScript  

c++.windows.16-bits - How to use Borland OBJs and LIBs with OPTLINK?

reply "Matt Blais" <mblais1 yummage.REMOVE-ME.com> writes:
Hi,

I am hoping someone here can help me with some questions about
"OPTLINK for Win32 Release 7.50B1".

I am trying to use OPTLINK as a drop-in replacement for Borland's 16-bit
TLINK (from Borland C++ 5.02), which is now overwhelmed by the size of my
Win16 application. I am still using BCC to create the OBJs, and hoping to
use OPTLINK to link the app.

I am having a problem linking with the Borland 5.02 libraries:
specifically, OPTLINK complains about:
   N:\bc5\lib\import.lib Offset 02087H Record Type 0088
   Error 1: Previous Definition Different : __GP

Borland's import.lib does contain a number of symbols defined in more than
one module (USER and KERNEL in the case of __GP). This does not seem to be
a problem for Borland's TLINK, but I could find no OPTLINK option to ignore
multiply-defined symbols in libraries. How does one deal with this
situation?

Has anyone successfully used OPTLINK to build Win16 apps with the Borland
libraries? What are my options to solve this problem?

Thanks for your help,
-- Matt Blais, matt.blais nadler.com
_____________________________________________________
Feb 25 2003
parent "Walter" <walter digitalmars.com> writes:
You could try pulling one of the __GP's out of one of the libraries.

"Matt Blais" <mblais1 yummage.REMOVE-ME.com> wrote in message
news:b3fv83$tr9$1 digitaldaemon.com...
 Hi,

 I am hoping someone here can help me with some questions about
 "OPTLINK for Win32 Release 7.50B1".

 I am trying to use OPTLINK as a drop-in replacement for Borland's 16-bit
 TLINK (from Borland C++ 5.02), which is now overwhelmed by the size of my
 Win16 application. I am still using BCC to create the OBJs, and hoping to
 use OPTLINK to link the app.

 I am having a problem linking with the Borland 5.02 libraries:
 specifically, OPTLINK complains about:
    N:\bc5\lib\import.lib Offset 02087H Record Type 0088
    Error 1: Previous Definition Different : __GP

 Borland's import.lib does contain a number of symbols defined in more than
 one module (USER and KERNEL in the case of __GP). This does not seem to be
 a problem for Borland's TLINK, but I could find no OPTLINK option to
ignore
 multiply-defined symbols in libraries. How does one deal with this
 situation?

 Has anyone successfully used OPTLINK to build Win16 apps with the Borland
 libraries? What are my options to solve this problem?

 Thanks for your help,
 -- Matt Blais, matt.blais nadler.com
 _____________________________________________________
Feb 25 2003