I'm an experienced UNIX programmer, but unfortunately am new to both Sphinx and Visual C++ (v6.0). I'd like to compile Sphinx II (libsphinx and SphinxOCX), and ensure things are working with whatever demos exist. I haven't found much in the way of orientation README's, though. After downloading the CVS tree, my attempt to compile libsphinx2.dsw yield all sorts of miscellaneous warnings, e.g.:
Compiling...
ad_base.c
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\include\err.h(33) : warning C4005: 'E_ABORT' : macro redefinition
c:\program files\microsoft visual studio\vc98\include\winerror.h(8105) : see previous definition of 'E_ABORT'
add-table.c
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\src\libsphinx2\add-table.c(99103) : warning C4049: compiler limit : terminating line number emission
agc_emax.c
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\src\libsphinx2\agc_emax.c(86) : warning C4244: '=' : conversion from 'double ' to 'float ', possible loss of data
allphone.c
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\src\libsphinx2\allphone.c(126) : warning C4013: 'phone_to_id' undefined; assuming extern returning int
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\src\libsphinx2\allphone.c(164) : warning C4013: 'chan_v_eval' undefined; assuming extern returning int
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\src\libsphinx2\allphone.c(268) : warning C4013: 'listelem_alloc' undefined; assuming extern returning int
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\src\libsphinx2\allphone.c(342) : warning C4013: 'SCVQScores' undefined; assuming extern returning int
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\src\libsphinx2\allphone.c(376) : warning C4013: 'phoneCiCount' undefined; assuming extern returning int
etc.
These may well be harmless, but I assume I'm missing something and there is a way to get a clean compile from the package without editing the code. Can you enlighten me here, and maybe point out what the steps are to test and use the package before I extend it for my own purposes?
Thanks,
Dylan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I get the same messages so I don't think you're doing anything unruly. It looks like for some of these routines the original compiler was not ANSI, for example in phone.c line 187 the declaration of phone_to_id is old style, producing the 5th warning above.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm an experienced UNIX programmer, but unfortunately am new to both Sphinx and Visual C++ (v6.0). I'd like to compile Sphinx II (libsphinx and SphinxOCX), and ensure things are working with whatever demos exist. I haven't found much in the way of orientation README's, though. After downloading the CVS tree, my attempt to compile libsphinx2.dsw yield all sorts of miscellaneous warnings, e.g.:
Compiling...
ad_base.c
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\include\err.h(33) : warning C4005: 'E_ABORT' : macro redefinition
c:\program files\microsoft visual studio\vc98\include\winerror.h(8105) : see previous definition of 'E_ABORT'
add-table.c
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\src\libsphinx2\add-table.c(99103) : warning C4049: compiler limit : terminating line number emission
agc_emax.c
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\src\libsphinx2\agc_emax.c(86) : warning C4244: '=' : conversion from 'double ' to 'float ', possible loss of data
allphone.c
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\src\libsphinx2\allphone.c(126) : warning C4013: 'phone_to_id' undefined; assuming extern returning int
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\src\libsphinx2\allphone.c(164) : warning C4013: 'chan_v_eval' undefined; assuming extern returning int
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\src\libsphinx2\allphone.c(268) : warning C4013: 'listelem_alloc' undefined; assuming extern returning int
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\src\libsphinx2\allphone.c(342) : warning C4013: 'SCVQScores' undefined; assuming extern returning int
c:\documents and settings\aaa\desktop\anthropics\src\sphinx2\src\libsphinx2\allphone.c(376) : warning C4013: 'phoneCiCount' undefined; assuming extern returning int
etc.
These may well be harmless, but I assume I'm missing something and there is a way to get a clean compile from the package without editing the code. Can you enlighten me here, and maybe point out what the steps are to test and use the package before I extend it for my own purposes?
Thanks,
Dylan
I get the same messages so I don't think you're doing anything unruly. It looks like for some of these routines the original compiler was not ANSI, for example in phone.c line 187 the declaration of phone_to_id is old style, producing the 5th warning above.