![]() | ![]() | GNOME Data Access manual | ![]() |
---|
Table of Contents
To <LINK>compile</LINK> you do not need to link with many libraries and configure directories of headers files, only capture the output of <EMPHASIS>pkg-config</EMPHASIS> as follows: <PROGRAMLISTING> <SYSTEMITEM>$</SYSTEMITEM> <USERINPUT> gcc -o main `pkg-config --cflags --libs libgda` main.c</USERINPUT> </PROGRAMLISTING>
Further more, you only need to include one <LINK>headers file</LINK> and it is:
#include <libgda/libgda.h>
As in the old version, you need to call <LINK><EMPHASIS>gda_init()</EMPHASIS></LINK> to <LINK>initialise</LINK> the library:
gda_init ("TestGDA", "0.1", argc, argv);
<< Full example | Configuration and connections >> |