gcc -shared -o test_example.so `/usr/local/mysql/bin/mysql_config \
--cflags` test_example.c `/usr/local/mysql/bin/mysql_config --libs`


Assumes your filename is test_example.c and your output file will be test_example.so and you have MySQL installed in /usr/local/mysql/ with the --with-embedded-server option enabled when you configured the script.


"Murder, Mayhem"
Otep - Nein.