Compilation and LinkingTo build a Fastgraph executable (EXE) file, you must:
The specific library, unit, module files must be in a directory where the linker or IDE searches for such files. Furthermore, if you're using C or C++, the file FGWIN.H must be in a directory where the compiler searches for include files. The exact method of compilation and linking of course varies between compilers, and most offer more than one way to perform these tasks. For example, Borland C++ lets you build EXE files with the integrated development environment (IDE), from the DOS command line, or with a MAKE utility. For each supported compiler, we'll discuss how to compile and link Fastgraph programs using each compiler's IDE. We'll also show the simplest ways to do this from the DOS command line. In any case, just remember that building a Fastgraph EXE file is really no different from building an ordinary Windows EXE file; you just link with the required Fastgraph libraries in addition to any other libraries your program needs. There are two Fastgraph libraries for each supported compiler. The native library has a name of the form FGWxxx, and the DirectX library is named FGWxxxD (that is, the same name as the native library with a "D" appended to the name). Because these libraries contain identically named functions, you cannot specify both library files when linking. The Fastgraph compilation and linking sequences are described for all supported compilers: The example compilation and linking commands use these notational conventions:
|
 
copyright 2001 Ted Gruber Software, Inc.