[Speex-dev] inline in Visual Studio 8

Oleg Kokorin ole2mail at yahoo.com
Sun May 6 10:19:24 PDT 2007


checked out revision is 12919
HAVE_CONFIG_H is defined in libspeex.vcproj
however problem appeared to be present.
(maybe missing include of win32/config.h inside misc.h
file?)

Oleg

--- Tom Grandgent <tgrand at canvaslink.com> wrote:

> 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