Hi
Have problem when create application hello_ps.c use this example
I put #include <pocketsphinx.h> and when compile see error: "undefined reference to `cmd_ln_init'" and same for each function from pocketsphinx.h
<pocketsphinx.h>
I compile code use gcc -o hello_ps hello_ps.c from folder /home/myuser/ Maybe I do something wrong with file path?
Please help
The command line is different from the one in tutorial, try to be accurate following the tutorial exactly.
You need to learn more about compiler header and library include path, -I, -l and -L gcc option and pkg-config.
https://gcc.gnu.org/onlinedocs/cpp/Search-Path.html https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html
Log in to post a comment.
Hi
Have problem when create application hello_ps.c use this example
I put #include
<pocketsphinx.h>
and when compile see error: "undefined reference to `cmd_ln_init'"and same for each function from pocketsphinx.h
I compile code use gcc -o hello_ps hello_ps.c from folder /home/myuser/
Maybe I do something wrong with file path?
Please help
The command line is different from the one in tutorial, try to be accurate following the tutorial exactly.
You need to learn more about compiler header and library include path, -I, -l and -L gcc option and pkg-config.
https://gcc.gnu.org/onlinedocs/cpp/Search-Path.html
https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html
Last edit: Nickolay V. Shmyrev 2017-06-07