Libgfileio

libgfileio is a C++ library that wraps around the standard unbuffered Unix file I/O functions write() and read(). Besides those, it provides some other wrappers around file related functions. It is type safe and extensively uses C++ exceptions for error conditions.

Licensing

The software is licensed under the GNU General Public License version 2 or later. See the COPYING file accompanying the tarball.

Supported Platforms

libgfileio can be built under Sun(TM) Solaris(TM) version 10 or later, FreeBSD, and Linux.

Installation

The usual

$ ./configure ; make ; make install
sequence. See the INSTALL file accompanying the tarball for further details.

Compilation and Linking

There are three ways to do this:

Manually
Use the '-I', '-L', and '-l' flags of the compiler, for instance
$ cc -I/usr/local/include/gfileio -L/usr/local/lib -lgfileio example.cc
pkg-config
Libgfileio comes with a package config file (.pc). You could type for instance
$ cc `pkg-config --cflags --libs libgfileio` example.cc
Autoconf/Automake
If you are using autoconf/automake for your project, then add to your configure.ac file
PKG_CHECK_MODULES(SOMEAPP, libgfileio >= 0.1)
AC_SUBST(SOMEAPP_CFLAGS)
AC_SUBST(SOMEAPP_LIBS)
$Id: index.shtml 2629 2009-08-09 08:52:05Z rafi $