Menu

Many functions (like bin_mdef_free) not exported to lib on Windows

Help
Yuheng Zou
2019-07-08
2019-07-08
  • Yuheng Zou

    Yuheng Zou - 2019-07-08

    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?

     
    • Nickolay V. Shmyrev

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.