How to use YACL with Borland C++

Last update: June 2, 1997

This file provides directions on how to build YACL and its demo programs using the Borland C++ compiler.

Building YACL

Known problems

Borland C++ 5.0. BC5 seems to issue some spurious warnings about variables being assigned values that are never used. Also, BC5 instantiates a lot more templates than does BC4, so the library utility (TLIB) issues warnings about duplicate symbols.

Borland C++ 1.5 under OS/2 and the String class. It seems as if expressions involving Strings with concatenation, such as

as the arm of a switch statement cause the program to crash; for example the CL_Date::PrintString method. The exact same code works fine under BC++ for DOS/Windows and GNU C++. I'd guess that BCOS2 is generating bad code for this one case. The straightforward workaround is to use String's AssignWithFormat method.

Shared libraries (DLLs). The UI classes don't seem to work reliably when built as a DLL under Windows NT. I'm still investigating why this happens.