snprintf was not part of C90, it's a C99 addition or an extension to C90 available to certain compilers.

It looks like you may be using some variant of gcc, so try adding the flag -std=c99.