Menu

compilation error in VS2008

Help
Pankaj
2010-03-23
2012-09-22
  • Pankaj

    Pankaj - 2010-03-23

    When I compile pocketsphinx_continuous in VS2008 as indicated in the README
    file in pocketsphinx, I get six linking errors:

    Linking...
    continuous.obj : error LNK2019: unresolved external symbol __imp__ps_free
    referenced in function _main
    continuous.obj : error LNK2019: unresolved external symbol __imp__ps_init
    referenced in function _main
    continuous.obj : error LNK2019: unresolved external symbol __imp__ps_get_hyp
    referenced in function _utterance_loop
    continuous.obj : error LNK2019: unresolved external symbol __imp__ps_end_utt
    referenced in function _utterance_loop
    continuous.obj : error LNK2019: unresolved external symbol
    __imp__ps_process_raw referenced in function _utterance_loop
    continuous.obj : error LNK2019: unresolved external symbol __imp__ps_start_utt
    referenced in function _utterance_loop
    ....\bin\Debug\pocketsphinx_continuous.exe : fatal error LNK1120: 6
    unresolved externals

    What could be the problem.

    Pankaj

     
  • Nickolay V. Shmyrev

    When you report about compilation problems please learn to provide version of
    the package you are trying to compile.

     
  • Nickolay V. Shmyrev

    As for the linking issue, you need to build pocketsphinx project first, only
    then pocketsphinx_continuous.

     
  • Pankaj

    Pankaj - 2010-03-23

    Thanks nshmyrev for responding.
    I am compiling pocketsphinx 0.6 and sphinxbase 0.6. Both of them get compiled
    without any errors. I get the errors only while compiling the demos given in
    win32 folder. I am following the instructions as given in the README file. The
    README file instructs to minimally compile pocketsphinx_continuous.

    Regards
    Pankaj

     
  • Nickolay V. Shmyrev

    Ok, there is a bug in released version and it doesn't build. We'll try to fix
    shortly.

    To build this app yourself do the following:

    In pocketsphinx_continuous properties in input add the folder containing
    pocketsphinx.lib to the list of additional library directories. It's in
    Linker->General. In my case you need to add C:/bin/Debug since
    pocketsphinx.lib is created there. In Linker->Input add pocketsphinx.lib to
    sphinxbase.lib and winnt.lib. After that project should build fine.

     
  • Nickolay V. Shmyrev

    Hi

    This issue was fixed in trunk. The fix will appear in nightly build tomorrow
    and will be availalbe in the next release.

     

Log in to post a comment.