This section describes how to use Borland's C++ compilers to compile programs that use Rogue Wave's LAPACK.h++ class library.
These instructions assume that the Borland include files and libraries are in the locations specified by the file bcc32.cfg for 32-bit compiles. If not, you will have to specify -I and -L flags as well, or change your configuration file. (See the Borland User's Guide for instructions.)
Let's say that we have a file named myapp.cpp and that we are compiling it in a Windows NT MS-DOS command prompt. Let's also say that the LAPACK.h++ and Math.h++ header file include path is
c:\rwav\workspaces\WINNT4\BORLANDC++_Builder_30\0s
and that we have built a static, single-threaded, no debug version of LAPACK.h++ named lpk0s.lib. Then we can compile myapp.cpp with the Borland C++ compiler with the following command (all on one line):
bcc32 -Ic:\rwav\workspaces\WINNT4\BORLANDC++_Builder_30\0s myapp.cpp c:\rwav\workspaces\WINNT4\BORLANDC++_Builder_30\0s\lib\lpk0s.lib c:\rwav\workspaces\WINNT4\BORLANDC++_Builder_30\0s\lib\laf0s.lib c:\rwav\workspaces\WINNT4\BORLANDC++_Builder_30\0s\lib\bla0s.lib c:\rwav\workspaces\WINNT4\BORLANDC++_Builder_30\0s\lib\mth0s.lib c:\rwav\workspaces\WINNT4\BORLANDC++_Builder_30\0s\lib\tls0s.lib
The entire command line must be typed without carriage returns. Your operating system might have a line length limit. If your command line gets too long, use a response file.
The command above will compile and link in one step.
The -I option tells the compiler where to find the header files.
The path
c:\rwav\workspaces\WINNT4\BORLANDC++_Builder_30\0s\lib\lpk0s.lib
and the other lib paths are the full path names for no standard library, no debugging, static LAPACK.h++, FORTRAN, BLA, Math.h++, and Tools.h++ libraries for Borland C++. (Substitute as appropriate.)
At this release, LAPACK.h++ cannot be built as a DLL using Borland C++ under Windows 95 and Windows NT.
When using the Borland C++ IDE, you must define the Rogue Wave include path, for example, <rw_root>\workspaces\WINNT4\BORLANDC++_Builder_30\0s, to every project. Use menu selection Options | Project | Directories.
You should also add the appropriate LAPACK.h++ library to your Project Window. See the Borland User's Guide for instructions.
©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.