How to use AFCs

This section is aimed to help you start up using AFC in your own C projects. As you'll see, it is very simple. For compilation and installation, please refer to INSTALL/README files inside the AFC distribution.

#include <afc/afc.h>

To start writing AFC-based source, you have to add this single line to your #include directives:
	#include <afc/afc.h>
		
If you are going to write C++ code, then the line above should be replaced by the following:
	#include <afc/afcpp.h>
		
It is that simple.

afc-config

A script is provided to help you compile your program. The script is called afc-config. The synopsis is:

afc-config [--libs] [--cflags] [--static] [--cpp] [--version] [--authors] [--contrib]

Options mimic the behaviours of gtk-config, so it should be quite easy to use. Please, refer to afc-command help for more info about it.