Me and a few more users (at https://groups.google.com/forum/#!topic/strophe/sPw7-Vpszxs) were struggling to compile example files. I think this readme file will help others as well.
Compile example files with following gcc flags :
gcc -Wall -I/usr/local/include -L/usr/local/lib -o bot bot.c -lstrophe -lssl -lresolv -lexpat