Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to fix Errors during compiling and linking with Borland C++ 4.5

Status
Not open for further replies.

Sjhaw

Programmer
May 14, 2011
9
US
Compiling and linking using Borland C++ 4.5 the command line:

Compiling:
Error: could not find file 'c.cpp"

Linking:
Fatal: Unable to open file 'mbsup56b.lib"


Borland C++ 4.5 allows creation of protected mode DOS applications using the 32 bit DLL version of run-time libraries.

Step 1:. compiling C source code into an object file using Borland C++ 4.5; and
Step 2: linking the resulting object file using Borland C++ 4.5 32 bit linker with 32 bit DLL version of run-time libraries.

I am trying to link the following DLLs (containing MB86 run-time routines written in C and assembly language).

mbsup56b.dll
mbutl56b.dll
mb32i56b.dll

I am also trying to link:

cw3215.dll


The options for BCC32.EXE are:
option output
-WX DPMI32.EXE

The options for TLINK32.EXE are:
option output
-Tpe -ax DPMI32.EXE


bcc32 -r- -w- c -WX myexample.C
tlink32 -Tpe -ax c:\bc45\lib\c0x32 myexample,myexample.exe,,mbsup56b mbutl56b mb32i56b dpmi32 cw3215

Please review the above command line options for errors.

Thanks for your assistance.
 
>bcc32 -r- -w- c -WX myexample.C
The above should be corrected as follows to compile successfully:
bcc32 -r- -w- -c -WX myexample.C


>tlink32 -Tpe -ax c:\bc45\lib\c0x32 >myexample,myexample.exe,,mbsup56b.lib mbutl56b.lib mb32i56b.lib dpmi32.lib cw32i.lib

Borland C++ 4.5 does not install dpmi32.lib. Anyone using Borland PowerPack for DOS? Except dpmi32.lib, I have all the .lib files for successful linking.

Thanks for assistance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top