I'm working in a VS C++ environment, and to me, it's unfortunate that pocketsphinx and sphinxbase won't compile as C++ under VS. In nearly all cases, it's simply a matter of adding explicit casts. I'm more than willing to go through and make all the changes, but I'm not a committer (yet) for this project. Any ideas about how (or whether) to proceed? I'm willing to do a reasonable amount of testing.
CB
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That said, if all it needs to compile as C++ is some explicit casts and other code cleanup, then you can submit your changes as a diff against the latest revision in the Subversion repository. Use "svn diff" (or the equivalent of this in TortoiseSVN).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not sure why you want or need to compile it as C++. Visual C++ will compile it as C just fine. As Nickolay said, this is what extern "C" is for. You will notice that the header files have helpfully included this for you.
We will not use C++ in any public interfaces, ever.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm working in a VS C++ environment, and to me, it's unfortunate that pocketsphinx and sphinxbase won't compile as C++ under VS. In nearly all cases, it's simply a matter of adding explicit casts. I'm more than willing to go through and make all the changes, but I'm not a committer (yet) for this project. Any ideas about how (or whether) to proceed? I'm willing to do a reasonable amount of testing.
CB
Compile it as a C project, use as an external library with
extern "C" {
}
That said, if all it needs to compile as C++ is some explicit casts and other code cleanup, then you can submit your changes as a diff against the latest revision in the Subversion repository. Use "svn diff" (or the equivalent of this in TortoiseSVN).
I'm not sure why you want or need to compile it as C++. Visual C++ will compile it as C just fine. As Nickolay said, this is what extern "C" is for. You will notice that the header files have helpfully included this for you.
We will not use C++ in any public interfaces, ever.