Once you've installed it, you should refer to the header files in your source code like this:
Code:
#include <soem/osal.h>
#include <soem/oshw.h>
Then compile like this:
Code:
gcc yourprog.c -o yourprog -lsoem
(Note that -l is a lowercase L)