Skip to main content

Problems running Visibroker application with Borland C Compiler 6

  • February 16, 2013
  • 0 replies
  • 0 views

Problem:

  • Product Name: VisiBroker for C , Borland C Builder 6
  • Product Version: 6.5
  • Product Component: Application Development
  • Platform/OS Version: Windows 2000, XP Professional

How to set up Borland C Builder to develop and run Visibroker C applications?

The following error messages when building or running VisiBroker application in Borland C Compiler are encountered:

Linker errors such as: [Linker Fatal Error] Fatal: Unable to open file 'COSNMNS2.LIB'

Or

Runtime exceptions such as 'This application has failed to start because VPORT_BR_65.DLL was not found. Re-installing the application may fix this problem'

Resolution:

A proper environment setting is required for VisiBroker apps compilation and execution with Borland C Builder (BCB). Follow the following steps to do so:

  • Set the requisite environment parameters by running the supported Visibroker"s vbroker.sh (or vbroker.bat on Windows).
  • Add the \\bin to the PATH variable as:
    set PATH=D:\\Program Files\\Borland\\CBuilder6\\Bin;%PATH%
  • Then launch BCB from the command line as follows:
    Run bcb.exe if the compiler is 5.6
    >"D:\\Program Files\\Borland\\CBuilder6\\Bin\\bcb.exe"
    OR
  • Run bds.exe if the compiler is 5.8
    >"C:\\Program Files\\Borland\\BDS\\4.0\\Bin\\bds.exe" -pCBuilder

Note: The Installation base for VisiBroker to be used with Borland C Builder is different than the installer used for Microsoft Visual Studio Applications.


To know the BCB Compiler Version from the Borland C Builder Installation, run bcc32.exe as
>"D:\\Program Files\\Borland\\CBuilder6\\Bin\\bcc32.exe"

Borland C 5.6 for Win32 Copyright (c) 1993, 2002 Borland

 


#Security
#VisiBroker