Getting Down to the Basics

Compiling

The first thing you need to learn how to do is compile your program with the proper compiler flags so that your program will include the correct GMime headers and linker flags.

To compile and link a simple program, you'll want to do the following:

          gcc -g -Wall -o simple simple.c `pkg-config --cflags --libs gmime-2.0`