|
Using FILE-- in your projectAll you need to do, is to include those file in your project code. You can copy the header files into your source code, or you can use them from their installed location - it's entirely up to you, though you should read and understand the terms of the licence
The included file ... AM_FILEMM_PATH ...
and in your ... AM_CPPFLAGS = $(FILEMM_CPPFLAGS) ...
Alternatively, you can use the included script CompatibilitySome older compilers does not provide standard headers, in particularstd::char_traits<typename Char_Type> may be missing, and std::streambuf may not define the nested types std::streambuf::char_type , std::streambuf::int_type , and std::streambuf::traits_type .
In case that #define FILEMM_NEED_CHAR_TRAITS #ifndef FILEMM_streambuf # include <filemm/streambuf.hh> #endif
In case #define FILEMM_NEED_STREAMBUF_TYPES #ifndef FILEMM_streambuf # include <filemm/streambuf.hh> #endif If you use the provided Autoconf macros, all these checks can be done for you automatically. Put lines like AM_FILEMM_PATH AM_FILEMM_NEED_CHAR_TRAITS AM_FILEMM_NEED_STREAMBUF_H AM_FILEMM_NEED_STREAMBUF_TYPES configure.ac file, and include the (optional) configuration header before including filemm/streambuf.hh #ifndef HAVE_CONFIG_H # include "config.h" // Name may vary depending on AC_CONFIG_HEADERS #endif #ifndef FILEMM_streambuf # include <filemm/streambuf.hh> #endif
Last update Wed Apr 13 07:51:08 2005 Christian Holm Created by DoxyGen 1.4.2 |