Stoul is usually a C++ function. Are you sure you're using the right compiler? Add -lm to your link libraries? That's all I've got. -- Senior Architect, Akamai Technologies Member, OpenSSL Dev Team IM: richsalz at jabber.at Twitter: RichSalz