[Speex-dev] inline in Visual Studio 8
Tom Grandgent
tgrand at canvaslink.com
Sat May 5 07:43:50 PDT 2007
Actually, it looks like this is already done in Speex as of revision
7150 in SVN (7/15/2004). As long as HAVE_CONFIG_H is defined in the
project settings (which it is in all of the project files in SVN),
win32\config.h should be included, and this has
#define inline __inline in it.
Oleg - you should make sure HAVE_CONFIG_H is defined in your project
settings. And, you didn't say which source file you were trying to
compile when you got the error, but it should have the following at
the top of it:
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
Tom
Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> wrote:
>
> #define inline __inline
>
> Not sure where that goes into MS project files...
>
> Jean-Marc
>
> Oleg Kokorin a écrit :
> > Hello All
> >
> > it seems like MS compiler don't like "inline" keyword,
> > instead it's expecting to see "__inline".
> >
> > speex\libspeex\misc.h(79) : error C2054: expected '('
> > to follow 'inline'
> >
> > Oleg
More information about the Speex-dev
mailing list