Menu

Compiling under Windows 2000 / Visual C++

Help
Anonymous
2000-10-11
2012-09-22
  • Anonymous

    Anonymous - 2000-10-11

    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

     
    • Eric Herrmann

      Eric Herrmann - 2000-10-14

      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.

       

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.