静态库之间有依赖关系顺序很重要
g++ -g -Wno-unused-but-set-variable -I . -I third/core/include -I third/vite/include -o ./a.out test/test.c wtk/vad/annvad/wtk_annvad_cfg.o wtk/vad/annvad/wtk_annvad.o wtk/vad/dnnvad/wtk_dnnvad.o wtk/vad/dnnvad/wtk_dnnvad_post.o wtk/vad/dnnvad/wtk_dnnvad_cfg.o wtk/vad/wtk_short_buffer.o wtk/vad/wtk_vad_cfg.o wtk/vad/wtk_vad.o wtk/vad/wtk_vframe.o wtk/vad/wtk_vad2.o wtk/vad/wtk_vad2_cfg.o wtk/vad3/wtk_vad3.o wtk/vad3/wtk_vad3_cfg.o third/core/lib/core_g.a third/vite/lib/vite_g.a -lm -lpthread -liconv
third/vite/lib/vite_g.a(wtk_parm.o): In function `wtk_parm_init':
/home/jfyuan/svn/aispeech/speechplatform/branches/wvite-jfy/wtk/vite/parm/wtk_parm.c:45: undefined reference to `wtk_vector_buffer_new'
third/vite/lib/vite_g.a(wtk_parm.o): In function `wtk_parm_clean':
/home/jfyuan/svn/aispeech/speechplatform/branches/wvite-jfy/wtk/vite/parm/wtk_parm.c:152: undefined reference to `wtk_vector_buffer_delete'
解决办法:third/core/lib/core_g.a third/vite/lib/vite_g.a调换一下顺序。