It looks like your test program relies on base64.h and presumably some source file, which you didn't include? I'm also not seeing your valgrind output in the attachment, but that is conceivably a problem on my end. (Our mail server is known to mangle some messages.)