Linking Yed libraries

After installation, Yed library can be easily linked in your application using the linker, either directly in command line, or through the compiler invocation. If you use GNU compiler 'gcc', you can link in your application the Yed library in several ways:

gcc [myoption] mycode.c /mypath/lib/
(if Yed library is a shared object)

gcc [myoption] mycode.c /mypath/lib/libyed.a
(if Yed library is a static library)

For using Yed objects in your source code, you must include the relative Yed header files; if these headers have been installed in one of the default header paths ( i.e. /usr/include ), you can insert these preprocessing directive in your source code without further operations:

#include <yedstd.h>
#include <yed[...].h>


#include <libyed/yedstd.h>
#include <libyed/yed[...].h>

Else, you must specify Yed header path in preprocessing directive:

#include "/miopath/libyed/yedstd.h"

Or you must invoke the compiler with the option -Iheaderpath, where headerpath is the Yed header files path.