I am writing an simple phoneme forced alignment demo. I just copied some
initialization code in the unit test file.
However, there are some functions causing LNK2019 error. Here is the list:
bin_mdef_free
dict_init
dict_free
dict2pid_build
dict2pid_free
ps_alignment_init
ps_alignment_free
I manually listed the symbols in pocketsphinx.lib, and I found many
bin_mdef functions are listed, but except bin_mdef_free. (using DUMPBIN
/ALL)
Those are not parts of a public API, they are not supposed to be exported. If you want to export them, you need to add POCKETSPHINX_EXPORT before function declaration in header file just like for other public functions.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am writing an simple phoneme forced alignment demo. I just copied some
initialization code in the unit test file.
However, there are some functions causing LNK2019 error. Here is the list:
bin_mdef_free
dict_init
dict_free
dict2pid_build
dict2pid_free
ps_alignment_init
ps_alignment_free
I manually listed the symbols in pocketsphinx.lib, and I found many
bin_mdef functions are listed, but except bin_mdef_free. (using DUMPBIN
/ALL)
What should I do to include them in my lib file?
Those are not parts of a public API, they are not supposed to be exported. If you want to export them, you need to add POCKETSPHINX_EXPORT before function declaration in header file just like for other public functions.