I am assuming you are doing this in Windows. You need to change the code as follows: //state = speex_encoder_init(&speex_nb_mode); const SpeexMode * mode; mode = speex_lib_get_mode (SPEEX_MODEID_NB); state = speex_encoder_init(mode); Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20090204/e4c1eb3a/attachment.htm