INSTALL 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [Installing on systems with make(1)]
  2. On systems with make, the installation process consists of:
  3. ./configure
  4. make
  5. make check
  6. make install
  7. You may need to run ldconfig or a similiar command before dynamically
  8. linking your program to libcsv.
  9. This will install the csv.h header, libcsv shared and static libraries,
  10. and the csv(3) manual page. Run ./configure --help for other options.
  11. If you receive an error about files being out of date or automake not installed
  12. when running make, run the fix-timestamps.sh script and try again.
  13. [Installing on systems without make]
  14. libcsv is written in pure ANSI C89 and does not have any prerequisites aside
  15. from a compiler and the Standard C library, it should compile on any
  16. conforming implementation. Below are examples of how to compile this on gcc,
  17. see your compiler's documentation for other compilers.
  18. libcsv can be installed as a shared library on systems that support it:
  19. gcc -shared libcsv.c -o libcsv.so
  20. or simply compiled into object code an linked into your program:
  21. gcc libcsv.c -c -o libcsv.o
  22. gcc myproject.c libcsv.o -o myproject
  23. you can also compile libcsv as a static library:
  24. gcc libcsv.c -c -o libcsv.o
  25. ar -rc libcsv.a libcsv.o
  26. ar -s libcsv.a
  27. The examples can be compiled with gcc like this:
  28. gcc csvinfo.c libcsv.o -o csvinfo
  29. or using a shared library like this:
  30. gcc csvinfo.c -lcsv -o csvinfo