User`s guide
256
K
A
DAK
KwikNet Virtual File System
Compiling the VFS Data Files
The VFS Generator produces a set of one or more VFS Data Files which, collectively,
form your Virtual File System. These data files are C source files which must be
compiled to create your VFS object modules. If you wish, you can combine these VFS
object modules into a VFS library module using your object module librarian. Either the
VFS object modules or your VFS library module must be linked with your KwikNet
application.
Each VFS Data File is compiled in exactly the same manner as your own application
modules which use
KwikNet. The process is described in Chapter 3.4.
Note that the compilation depends on
KwikNet header file KN_VFS.H from subdirectory
TCPIP in the KwikNet installation directory. This header file will be copied to the Treck
installation directory
TRECK\INCLUDE when your KwikNet Library is created. Hence it is
always accessible for compilation along with all other
KwikNet header files.
Linking with the Virtual File System
Be sure to configure your KwikNet Library to include support for the Virtual File System.
To do so, check the Use VFS option on the File System property page as described in
Appendix C.2. If any of the files in your Virtual File System have been compressed, be
sure to check the option labeled Enable VFS Compression to ensure that these files will be
decompressed when accessed by your application.
If you are linking your Virtual File System as a set of one or more VFS object modules,
insert them prior to all libraries.
If you are linking your Virtual File System as one or more VFS library modules, insert
them following the KwikNet Library KNnnnIP.LIB. Note that library files may have the
extension .A or some other extension as dictated by the toolset which you are using.
Note
If symbol kvfs_primary is undefined, you have forgotten
to link the VFS data files which make up your Virtual File
System. If you have more than one VFS volume, you may
have linked the secondary volumes but the primary volume
has not been linked.