[x264-devel] C Style X264 not easily compiled in Visual Studio.

Jason Garrett-Glaser darkshikari at gmail.com
Sun Aug 23 06:25:11 CEST 2009


On Sat, Aug 22, 2009 at 9:03 PM, JIA Pei<jp4work at gmail.com> wrote:
>
> Hi, all:
>
> Since all X264 codes are C Standard, I've got to revise a bit to make it
> compiled successfully in Windows Visual Studio 2008.
> However, the test project X264 always fail to compile and put out some error
> messages:
>
>
> 1>libx264.lib(analyse.obj) : error LNK2005: _x264_lambda_tab already defined
> in libx264.lib(encoder.obj)
> 1>libx264.lib(analyse.obj) : error LNK2005: _x264_lambda2_tab already
> defined in libx264.lib(encoder.obj)
> 1>libx264.lib(cavlc.obj) : error LNK2005: _x264_lambda_tab already defined
> in libx264.lib(encoder.obj)
> 1>libx264.lib(cavlc.obj) : error LNK2005: _x264_lambda2_tab already defined
> in libx264.lib(encoder.obj)
> 1>libx264.lib(cabac.obj) : error LNK2005: _x264_lambda_tab already defined
> in libx264.lib(encoder.obj)
> 1>libx264.lib(cabac.obj) : error LNK2005: _x264_lambda2_tab already defined
> in libx264.lib(encoder.obj)
> 1>libx264.lib(macroblock.obj) : error LNK2005: _x264_lambda_tab already
> defined in libx264.lib(encoder.obj)
> 1>libx264.lib(macroblock.obj) : error LNK2005: _x264_lambda2_tab already
> defined in libx264.lib(encoder.obj)
> 1>libx264.lib(me.obj) : error LNK2005: _x264_lambda_tab already defined in
> libx264.lib(encoder.obj)
> 1>libx264.lib(me.obj) : error LNK2005: _x264_lambda2_tab already defined in
> libx264.lib(encoder.obj)
> 1>bin/x264.exe : fatal error LNK1169: one or more multiply defined symbols
> found
>
>
>
>
> I'm just wondering whether X264 developers may make X264 a real platform
> independent code ---- please ensure you know C99 is not well supported by
> Visual Studio 2008. So, can you please help?

x264 is written in the C99 language.  It is rather silly to attempt to
compile it using a compiler that does not support that language!  As
such, we don't support MSVC, since it isn't a C99 compiler.
Fortunately, there are many other options.

Both ICC and GCC are cross-platform C99-supporting compilers which can
compile x264.

Dark Shikari


More information about the x264-devel mailing list