Problem:
- Product: VBC 4.5 BCB edition
- Platform: Windows
- JDK version: N/A
- Compiler version: BCB 5 and 6
- Product component applicable: N/A
Have downloaded VBC 4.5 install "vbcpp45_Windows_NT_x86_BCB.exe" and the free Borland C Compiler "freecommandLinetolls.exe" to compile and link (make) the bank_agent example in VBC4.5 and am unable to do so. Also, unable to get it working with BCB 6.0 trial edition.
How to build apps from command line using VBC4.5 with BCB 5 & 6?
Resolution:
The free BCB 5.5 command line compiler, "freecommandLinetolls.exe", and BCB 6 trial edition cannot be used to build VBC applications. It appears that they do not contain all the necessary library and include files needed and a full version of either BCB 5 or 6 is needed. The ReadMe for the BC Compiler says to:
1) Create a bcc32.cfg file which will set the compiler options for the Include and Lib paths (-I and -L switches to compiler) by adding these lines:
-I"c:\\Borland\\Bcc55\\include" -L"c:\\Borland\\Bcc55\\lib"
2) Create an ilink32.cfg file which will set the linker option for the Lib path by adding this line:
-L"c:\\Borland\\Bcc55\\lib"
However, similar error are received when building bank_agent example:
>make -f Makefile.cpp
"MAKE Version 5.2 Copyright (c) 1987, 2000 Borland ILINK32 -Tpe -r -ap -Gn C0X32.OBJ /v -LD:\\Inprise\\vbroker\\lib Client.obj Bank_c.obj import32.lib vcl.lib cw32mti.lib ,Client.exe Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Fatal: Unable to open file "VCL.LIB"
It appears that for some reason, the information from ilink32.cfg file is not read/used during linking. So, we must manually edit the LIBPATH in stdmk_nt file to include the necessary libraries when linking as follows and successfully build the bank_agent example:
LIBPATH = -L$(LIBDIR) -L"C:\\Program Files\\Borland\\CBuilder5\\Lib" -L"C:\\Program Files\\Borland\\CBuilder5\\Lib\\Release"
#Security
#compile
#BCB
#VisiBroker




