Hi - In addition to the missing file I posted in the "Open discussions"
section, when I try to compile a clean build (from SVN) of pocketsphinx, I get
the following Link errors;
2>batch.obj : error LNK2019: unresolved external symbol _dict_real_word
referenced in function _write_ctm
2>batch.obj : error LNK2019: unresolved external symbol _dict_wordid
referenced in function _write_ctm
The sphinxbase and pocketsphinx libraries both compile correctly, but when I
go to build the batch processing program, I get these link errors. It doesn't
seem to make sense because bot functions exist in the file "dict.c" in the
pocketsphinx library.
Help/Thoughts?
M
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, I figured this out (painfully). I bet that you guys mostly compile on
linux/unix/whatever, because what happened is a windows only issue. Since you
are using S3kr3t headerz to get the functions in dict.h, you must do a couple
of things.
The directory must be in the include path - add ../../../src/libpocketsphinx; to "Additional Include Directories"
Modify dict.h - add #include <pocketsphinx_export.h>
Add POCKETSPHINX_EXPORT before the two functions dict_real_word and
dict_wordid. </pocketsphinx_export.h>
Obviously, these are hacks and I'm sure you guys are going to do something
different to actually solve the problem, I just thought I'd put this out there
in the meanwhile.
M
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi - In addition to the missing file I posted in the "Open discussions"
section, when I try to compile a clean build (from SVN) of pocketsphinx, I get
the following Link errors;
2>batch.obj : error LNK2019: unresolved external symbol _dict_real_word
referenced in function _write_ctm
2>batch.obj : error LNK2019: unresolved external symbol _dict_wordid
referenced in function _write_ctm
The sphinxbase and pocketsphinx libraries both compile correctly, but when I
go to build the batch processing program, I get these link errors. It doesn't
seem to make sense because bot functions exist in the file "dict.c" in the
pocketsphinx library.
Help/Thoughts?
M
Ok, I figured this out (painfully). I bet that you guys mostly compile on
linux/unix/whatever, because what happened is a windows only issue. Since you
are using S3kr3t headerz to get the functions in dict.h, you must do a couple
of things.
Add POCKETSPHINX_EXPORT before the two functions dict_real_word and
dict_wordid. </pocketsphinx_export.h>
Obviously, these are hacks and I'm sure you guys are going to do something
different to actually solve the problem, I just thought I'd put this out there
in the meanwhile.
M
Thanks, Mike. Yes, it's a work in progress.
This should be solved in trunk. Please test.