home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 488.lha / reslib / readme < prev    next >
Text File  |  1991-03-08  |  1KB  |  42 lines

  1. This following files make up the source to a very simple
  2. example library:
  3.  
  4. test.c             Contains two library routines.
  5.  
  6. try_lib.c          Opens the test library and calls its two functions.
  7.  
  8. test.fd            .fd file describing test.library
  9.  
  10.  
  11. To build the library and test routines do the following steps.
  12.  
  13. 1) Create #pragmas for the library.
  14.       fd2pragma test.fd test_pragmas.h
  15.  
  16.  
  17. 2) Compile and link try_lib.c.  No special options necessary. 
  18.       lc -L try_lib.c
  19.       
  20. 3) Compile test.c as follows:
  21.       lc -ml -v test.c
  22.  
  23. 4) Generate the library from the .fd file and object modules.
  24.       blink LIBPREFIX _LIB LIBFD test.fd to test.library FROM lib:libent.o 
  25.             lib:libinit.o test.o
  26.  
  27. 5) Copy test.library to libs:
  28.       copy test.library libs:
  29.       
  30. 6) Run the test program.
  31.       try_lib
  32.       
  33.    If everything worked ok you should see:
  34.    
  35.    Library Opened Successfully.
  36.    test1 = 1
  37.    test2 = 2
  38.    Library Closed.
  39.    
  40.       
  41. For a detailed description on a library is created, refer to reslib.doc.
  42.