hi i am try to create a basic application using pcketsphinx my code is below;
#include "stdafx.h" #include <pocketsphinx.h> int _tmain(int argc, char *argv[]) { ps_decoder_t *ps; cmd_ln_t *config; config = cmd_ln_init(NULL, ps_args(), TRUE, "-hmm", "D:/model/hmm/en_US/hub4wsj_sc_8k", "-lm", "D:/model/lm/en/turtle.DMP", "-dict", "D:/model/lm/en/turtle.dic", NULL);}
but it was an error ;
------ Build started: Project: deneme2, Configuration: Debug Win32 ------ 1>Build started 5/26/2013 1:34:14 PM. 1>InitializeBuildStatus: 1> Touching "Debug\deneme2.unsuccessfulbuild". 1>ClCompile: 1> All outputs are up-to-date. 1> deneme2.cpp 1>d:\d\1\deneme2\deneme2\deneme2.cpp(7): warning C4101: 'ps' : unreferenced local variable 1>ManifestResourceCompile: 1> All outputs are up-to-date. 1>deneme2.obj : error LNK2019: unresolved external symbol __imp__cmd_ln_init referenced in function _wmain 1>deneme2.obj : error LNK2019: unresolved external symbol __imp__ps_args referenced in function _wmain 1>D:\d\1\deneme2\Debug\deneme2.exe : fatal error LNK1120: 2 unresolved externals 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:00.14 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
ı use microsoft visual c++ 2010 express
resolved external symbol impcmd_ln_init referenced in function _wmain
You need to add pocketsphinx.dll into project. See MSDN documentation on using external DLLs in your project for details.
thanks this problem was solved :)
Log in to post a comment.
hi i am try to create a basic application using pcketsphinx my code is below;
but it was an error ;
Last edit: Nickolay V. Shmyrev 2013-05-26
ı use microsoft visual c++ 2010 express
You need to add pocketsphinx.dll into project. See MSDN documentation on using external DLLs in your project for details.
thanks this problem was solved :)